diff --git a/src/main.rs b/src/main.rs index d5d3ef978..8836ef554 100644 --- a/src/main.rs +++ b/src/main.rs @@ -311,6 +311,9 @@ fn pep517(subcommand: Pep517Command) -> Result<()> { out: Some(sdist_directory), cargo: CargoOptions { manifest_path, + // Enable all features to ensure all optional path dependencies are packaged + // into source distribution + all_features: true, ..Default::default() }, ..Default::default() @@ -417,6 +420,9 @@ fn run() -> Result<()> { out, cargo: CargoOptions { manifest_path, + // Enable all features to ensure all optional path dependencies are packaged + // into source distribution + all_features: true, ..Default::default() }, ..Default::default()