goertzenator / cargo-erlangapp Goto Github PK
View Code? Open in Web Editor NEWBuild Rust crates embedded in an Erlang application
License: MIT License
Build Rust crates embedded in an Erlang application
License: MIT License
Hi,
I get the following error when I run erlangapp clean in a erlang.mk project:
.cargo-erlangapp/bin/cargo-erlangapp clean
Cleaning /Users/jo/src/flint/flint_hss/crates/auc_nif
Cleaning /Users/jo/src/flint/flint_hss/crates/milenage
Error: can't delete output dir
› make clean
.cargo-erlangapp/bin/cargo-erlangapp clean
Cleaning /Users/jo/src/flint/flint_hss/crates/auc_nif
Cleaning /Users/jo/src/flint/flint_hss/crates/milenage
Error: can't delete output dir
make: *** [rust-clean] Error 1
I see the app is trying to remove a priv directory somewhere but its swallowing the error so I don't know why its failing.
Directory structure after make (roughly):
.cargo-erlangapp
.cargo-erlangapp/bin/cargo-erlangapp
deps
deps/rust_mk
deps/rust_mk/plugins.mk
deps/rust_mk/....etc
src
src/erlang_code.erl
src/...etc
ebin
ebin/erlang_code.beam
crates
crates/crate1/Cargo.toml
crates/crate1/etc
crates/crate2/Cargo.toml
crates/crate2/etc
priv
priv/crates/crate1/libray.so
priv/crates/crate2/libray.so
_rel/
etc...
Directory structure after make clean (with error):
.cargo-erlangapp
.cargo-erlangapp/bin/cargo-erlangapp
deps
deps/rust_mk
deps/rust_mk/plugins.mk
deps/rust_mk/....etc
src
src/erlang_code.erl
src/...etc
crates
crates/crate1/Cargo.toml
crates/crate1/etc
crates/crate2/Cargo.toml
crates/crate2/etc
priv
_rel/
etc..
i.e. priv directory is there but empty.
Add verbose and dry-run switches to aid diagnosis of broken builds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.