Add `generate-abi3-import-lib` feature to `pyo3-ffi`

This commit is contained in:
messense 2022-04-16 16:16:01 +08:00
parent e88655d7ed
commit 1276068891
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
2 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,7 @@ abi3-py39 = ["abi3-py310", "pyo3-build-config/abi3-py39", "pyo3-ffi/abi3-py39"]
abi3-py310 = ["abi3", "pyo3-build-config/abi3-py310", "pyo3-ffi/abi3-py310"]
# Automatically generates `python3.dll` import libraries for Windows targets.
generate-abi3-import-lib = ["pyo3-build-config/python3-dll-a"]
generate-abi3-import-lib = ["pyo3-ffi/generate-abi3-import-lib"]
# Changes `Python::with_gil` and `Python::acquire_gil` to automatically initialize the
# Python interpreter if needed.

View File

@ -32,6 +32,8 @@ abi3-py38 = ["abi3-py39", "pyo3-build-config/abi3-py38"]
abi3-py39 = ["abi3-py310", "pyo3-build-config/abi3-py39"]
abi3-py310 = ["abi3", "pyo3-build-config/abi3-py310"]
# Automatically generates `python3.dll` import libraries for Windows targets.
generate-abi3-import-lib = ["pyo3-build-config/python3-dll-a"]
[build-dependencies]