Code Monkey home page Code Monkey logo

cargo-project's People

Contributors

bors[bot] avatar japaric avatar jonas-schievink avatar kelnos avatar lu-zero avatar samp20 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cargo-project's Issues

`package.version` may refer to workspace

The TOML entry package.version may be:

version = { workspace = true }

In this case cargo-project fails w/

error: Parse: invalid type: map, expected a string for key `package.version`

Multiple .cargo/config files not processed

When running cargo-call-stack with two Cargo config files, eg. this one:

# ~/.cargo/config
[build]
target-dir = "/home/my-user/.cache/cargo-target"

and this one

# ${PWD}/.cargo/config
[patch.crates-io]
riot-sys = { git = "https://github.com/RIOT-OS/rust-riot-sys" }
riot-wrappers = { git = "https://github.com/RIOT-OS/rust-riot-wrappers" }

then cargo call-stack does not find the binary to be tested because it is only processing the first found .cargo/config file, while Cargo itself processes both and puts the binary in a different place:

$ cargo +nightly call-stack --target thumbv7em-none-eabihf --example testex
[...]
    Finished release [optimized] target(s) in 4.37s
error: couldn't open ELF file `${PWD}/target/thumbv7em-none-eabihf/release/examples/testex`: No such file or directory (os error 2)

I've traced this down to cargo-project's parse<config::Config> method as called by Project::query, but am not sure how to fix it well within the idioms of this crate.

Workspace support

As described in rust-embedded/cargo-binutils#41 cargo-project does not properly support projects consisting of workspaces with cargo projects in them.

Easy test:

$ cat Cargo.toml
[workspace]
members = ["foo"]

cargo-project will explode on this, even though it's a valid cargo configuration.
This blocks cargo-binutils usage in any complex OS project.

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.