diff --git a/src/project.rs b/src/project.rs index 27d08da..4150673 100644 --- a/src/project.rs +++ b/src/project.rs @@ -938,11 +938,11 @@ pub struct Manifest { impl Manifest { pub fn parse() -> Result { - let metatdata = MetadataCommand::new().exec()?; - let package = metatdata.packages.first().with_context(|| { + let metadata = MetadataCommand::new().no_deps().exec()?; + let package = metadata.packages.first().with_context(|| { anyhow!( "Expected to find at least one package in {}", - metatdata.target_directory + metadata.target_directory ) })?; let crate_name = package.name.clone();