We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bdd22eb + 6c400b3 commit e55b183Copy full SHA for e55b183
crates/ra_project_model/src/cargo_workspace.rs
@@ -141,6 +141,11 @@ impl CargoWorkspace {
141
cargo_toml: &Path,
142
cargo_features: &CargoConfig,
143
) -> Result<CargoWorkspace> {
144
+ let _ = Command::new(cargo_binary())
145
+ .arg("--version")
146
+ .status()
147
+ .context("failed to run `cargo --version`, is `cargo` in PATH?")?;
148
+
149
let mut meta = MetadataCommand::new();
150
meta.manifest_path(cargo_toml);
151
if cargo_features.all_features {
0 commit comments