GithubHelp home page GithubHelp logo

rusterlium / erlang-cargo Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 6.0 37 KB

Erlang library to interact with Rust's cargo

License: Apache License 2.0

Elixir 3.63% Erlang 93.54% Rust 2.82%
cargo erlang rust

erlang-cargo's People

Contributors

filmor avatar lrascao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

erlang-cargo's Issues

Allow partial builds

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.

rebar3_cargo build failed

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"`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.