Check all crates of the workspace

Previously, if the root of the was was a real crate, only this crate
was checked.

Ideally, we might want some kind of config here (which might be just
overriding the whole command), but `--workspace` is def a nicer
default.
This commit is contained in:
Aleksey Kladov 2020-03-13 10:55:23 +01:00
parent 56590097ed
commit f2dd023150

View file

@ -254,6 +254,7 @@ impl WatchThread {
fn new(options: &CheckOptions, workspace_root: &PathBuf) -> WatchThread {
let mut args: Vec<String> = vec![
options.command.clone(),
"--workspace".to_string(),
"--message-format=json".to_string(),
"--manifest-path".to_string(),
format!("{}/Cargo.toml", workspace_root.to_string_lossy()),