Rust Cargo linter: Improve workspace support (#1679)

* Rust Cargo linter: Improve workspace support

When using Cargo workspaces [1], there is a 'Cargo.toml' directory in a
top level directory, listing all the crates in the project. If we are
currently editing one of the crates, 'cargo build' should execute in
that directory for that crate's separate `Cargo.toml`, otherwise Cargo
may spend more time possibly rebuilding the entire workspace, and maybe
failing on one of the other crates, instead of succeeding on the current.

[1] https://doc.rust-lang.org/book/second-edition/ch14-03-cargo-workspaces.html
This commit is contained in:
Dan Aloni
2018-06-28 00:36:02 +03:00
committed by w0rp
parent 980aa35566
commit d9e139ae23
5 changed files with 46 additions and 1 deletions