Cargo Features

pyo3-ffi has no features set by default.

[dependencies]
pyo3-ffi = { version = "0.21.2", features = ["extension-module", "abi3", "abi3-py37", "abi3-py38", "abi3-py39", "abi3-py310", "abi3-py311", "abi3-py312", "generate-import-lib"] }
extension-module build

Use this feature when building an extension module.
It tells the linker to keep the python symbols unresolved,
so that the module can also be used with statically linked python interpreters.

Enables extension-module of pyo3-build-config

abi3 build abi3-py312?

Use the Python limited API. See https://www.python.org/dev/peps/pep-0384/ for more.

Enables abi3 of pyo3-build-config

abi3-py37 build = abi3-py38

With abi3, we can manually set the minimum Python version.

Enables abi3-py37 of pyo3-build-config

abi3-py38 build abi3-py37? = abi3-py39

Enables abi3-py38 of pyo3-build-config

abi3-py39 build abi3-py38? = abi3-py310

Enables abi3-py39 of pyo3-build-config

abi3-py310 build abi3-py39? = abi3-py311

Enables abi3-py310 of pyo3-build-config

abi3-py311 build abi3-py310? = abi3-py312

Enables abi3-py311 of pyo3-build-config

abi3-py312 build abi3-py311? = abi3

Enables abi3-py312 of pyo3-build-config

generate-import-lib build

Automatically generates python3.dll import libraries for Windows targets.

Enables python3-dll-a of pyo3-build-config