rusterlium / erlang-cargo Goto Github PK
View Code? Open in Web Editor NEWErlang library to interact with Rust's cargo
License: Apache License 2.0
Erlang library to interact with Rust's cargo
License: Apache License 2.0
cargo build
supports -p
to give a single package to compile, this would be useful for rebar3_cargo
and rustler_mix
to limit the recompilation effort.
cargo:build_and_capture/1 will not enter crates directory and rebar3_cargo failed when compiling
Cargo = cargo:init(rebar_app_info:dir(App), #{ release => IsRelease }),
Artifacts = cargo:build_and_capture(Cargo),
===> Evaluating config script "/home/user/Workspace/erlang/random/_build/default/plugins/jsx/rebar.config.script"
===> Evaluating config script "/home/user/Workspace/erlang/random/_build/default/plugins/jsx/rebar.config.script"
===> Skipping jsx v2.10.0 as an app of the same name has already been fetched
===> Expanded command sequence to be run: [{default,app_discovery},
{default,install_deps},
{default,lock},
{default,compile}]
===> Provider: {default,app_discovery}
===> Evaluating config script "/home/user/Workspace/erlang/random/_build/default/plugins/jsx/rebar.config.script"
===> Evaluating config script "/home/user/Workspace/erlang/random/_build/default/plugins/jsx/rebar.config.script"
===> Skipping jsx v2.10.0 as an app of the same name has already been fetched
===> Not adding provider rust build from module rebar3_cargo_compile_prv because it already exists from module rebar3_cargo_compile_prv
===> Not adding provider rust clean from module rebar3_cargo_clean_prv because it already exists from module rebar3_cargo_clean_prv
===> Not adding provider rust test from module rebar3_cargo_test_prv because it already exists from module rebar3_cargo_test_prv
===> Provider: {default,install_deps}
===> Verifying dependencies...
===> Provider: {default,lock}
===> Provider: {default,compile}
===> run_hooks("/home/user/Workspace/erlang/random", pre_hooks, compile) -> no hooks defined
===> Compiling random
===> run_hooks("/home/user/Workspace/erlang/random", pre_hooks, compile) -> no hooks defined
===> run_hooks("/home/user/Workspace/erlang/random", pre_hooks, erlc_compile) -> no hooks defined
===> erlopts [debug_info]
===> files to compile ["/home/user/Workspace/erlang/random/src/random_sup.erl",
"/home/user/Workspace/erlang/random/src/random_app.erl"]
===> run_hooks("/home/user/Workspace/erlang/random", post_hooks, erlc_compile) -> no hooks defined
===> run_hooks("/home/user/Workspace/erlang/random", pre_hooks, app_compile) -> no hooks defined
===> run_hooks("/home/user/Workspace/erlang/random", post_hooks, app_compile) -> no hooks defined
===> Provider: {rust,build}
error: could not find `Cargo.toml` in `/home/user/Workspace/erlang/random` or any parent directory
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: {cargo_error,{101,[]}}
===> Stack trace to the error location:
[{cargo_cmd,exec,2,
[{file,"/home/user/Workspace/erlang/random/_build/default/plugins/cargo/src/cargo_cmd.erl"},
{line,78}]},
{cargo,metadata,1,
[{file,"/home/user/Workspace/erlang/random/_build/default/plugins/cargo/src/cargo.erl"},
{line,25}]},
{cargo,get_package_versions,1,
[{file,"/home/user/Workspace/erlang/random/_build/default/plugins/cargo/src/cargo.erl"},
{line,47}]},
{cargo,build_and_capture,1,
[{file,"/home/user/Workspace/erlang/random/_build/default/plugins/cargo/src/cargo.erl"},
{line,58}]},
{rebar3_cargo_compile_prv,do_app,2,
[{file,"/home/user/Workspace/erlang/random/_build/default/plugins/rebar3_cargo/src/rebar3_cargo_compile_prv.erl"},
{line,57}]},
{rebar3_cargo_compile_prv,do,1,
[{file,"/home/user/Workspace/erlang/random/_build/default/plugins/rebar3_cargo/src/rebar3_cargo_compile_prv.erl"},
{line,46}]},
{rebar_core,do,2,
[{file,"/tmp/cirrus-ci-build/src/rebar_core.erl"},{line,154}]},
{rebar_hooks,run_provider_hooks_,6,
[{file,"/tmp/cirrus-ci-build/src/rebar_hooks.erl"},{line,48}]}]
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
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.