See if we can always enable abi3 (#8823)

Previously it wasn't because pypy doesn't support abi3, but maybe the pyo3 feature works.
This commit is contained in:
Alex Gaynor 2023-04-25 07:23:57 -06:00 committed by GitHub
parent e03d583dcb
commit bb91e8b449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 8 deletions

View file

@ -54,12 +54,6 @@ try:
"cryptography.hazmat.bindings._rust",
"src/rust/Cargo.toml",
py_limited_api=True,
# Enable abi3 mode if we're not using PyPy.
features=(
[]
if platform.python_implementation() == "PyPy"
else ["pyo3/abi3-py37"]
),
rust_version=">=1.56.0",
)
],

View file

@ -9,7 +9,7 @@ rust-version = "1.56.0"
[dependencies]
once_cell = "1"
pyo3 = { version = "0.18" }
pyo3 = { version = "0.18", features = ["abi3-py37"] }
asn1 = { version = "0.15.0", default-features = false }
cryptography-cffi = { path = "cryptography-cffi" }
cryptography-x509 = { path = "cryptography-x509" }

View file

@ -8,7 +8,7 @@ publish = false
rust-version = "1.56.0"
[dependencies]
pyo3 = { version = "0.18" }
pyo3 = { version = "0.18", features = ["abi3-py37"] }
openssl-sys = "0.9.87"
[build-dependencies]