( )⚙ D12316 rust: enable Python 3 support unconditionally

This is an archive of the discontinued Mercurial Phabricator instance.

rust: enable Python 3 support unconditionally
ClosedPublic

Authored by SimonSapin on Mar 3 2022, 2:13 AM.

Details

Summary

Note: cpython/python3-sys is a default feature.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

SimonSapin created this revision.Mar 3 2022, 2:13 AM
SimonSapin added inline comments.Mar 3 2022, 2:17 AM
rust/hg-cpython/Cargo.toml
12

https://github.com/dgrunwald/rust-cpython/blob/0.7.0/Cargo.toml#L71-L74 documents the extension-module feature:

[…] so that the module can also be used with statically linked python interpreters.

This "also" means that enable this feature unconditionally does not break cargo test executables that do not involve an actual extension module.

Alphare accepted this revision.Mar 3 2022, 4:41 AM
This revision is now accepted and ready to land.Mar 3 2022, 4:41 AM
This revision was automatically updated to reflect the committed changes.