diff --git a/Changelog.md b/Changelog.md index dd6c55621..c01f32ae2 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Add 64-bit RISC-V support by felixonmars in [#1001](https://github.com/PyO3/maturin/pull/1001) * Add support for invoking with `python3 -m maturin` in [#1008](https://github.com/PyO3/maturin/pull/1008) +* Fix detection of optional dependencies when declaring `features` in `pyproject.toml` in [#1014](https://github.com/PyO3/maturin/pull/1014) ## [0.13.0] - 2022-07-09 diff --git a/src/build_options.rs b/src/build_options.rs index d524d0a21..c80df2f98 100644 --- a/src/build_options.rs +++ b/src/build_options.rs @@ -580,7 +580,7 @@ impl BuildOptions { Vec::new() }; - let cargo_metadata_extra_args = extract_cargo_metadata_args(&self.cargo)?; + let cargo_metadata_extra_args = extract_cargo_metadata_args(&cargo_options)?; let result = MetadataCommand::new() .manifest_path(&manifest_file)