| 1 | [package] |
| 2 | name = "pyo3-ffi" |
| 3 | version = "0.24.2" |
| 4 | description = "Python-API bindings for the PyO3 ecosystem" |
| 5 | authors = ["PyO3 Project and Contributors <https://github.com/PyO3>" ] |
| 6 | keywords = ["pyo3" , "python" , "cpython" , "ffi" ] |
| 7 | homepage = "https://github.com/pyo3/pyo3" |
| 8 | repository = "https://github.com/pyo3/pyo3" |
| 9 | categories = ["api-bindings" , "development-tools::ffi" ] |
| 10 | license = "MIT OR Apache-2.0" |
| 11 | edition = "2021" |
| 12 | links = "python" |
| 13 | rust-version = "1.63" |
| 14 | |
| 15 | [dependencies] |
| 16 | libc = "0.2.62" |
| 17 | |
| 18 | [features] |
| 19 | |
| 20 | default = [] |
| 21 | |
| 22 | # Use this feature when building an extension module. |
| 23 | # It tells the linker to keep the python symbols unresolved, |
| 24 | # so that the module can also be used with statically linked python interpreters. |
| 25 | extension-module = ["pyo3-build-config/extension-module" ] |
| 26 | |
| 27 | # Use the Python limited API. See https://www.python.org/dev/peps/pep-0384/ for more. |
| 28 | abi3 = ["pyo3-build-config/abi3" ] |
| 29 | |
| 30 | # With abi3, we can manually set the minimum Python version. |
| 31 | abi3-py37 = ["abi3-py38" , "pyo3-build-config/abi3-py37" ] |
| 32 | abi3-py38 = ["abi3-py39" , "pyo3-build-config/abi3-py38" ] |
| 33 | abi3-py39 = ["abi3-py310" , "pyo3-build-config/abi3-py39" ] |
| 34 | abi3-py310 = ["abi3-py311" , "pyo3-build-config/abi3-py310" ] |
| 35 | abi3-py311 = ["abi3-py312" , "pyo3-build-config/abi3-py311" ] |
| 36 | abi3-py312 = ["abi3-py313" , "pyo3-build-config/abi3-py312" ] |
| 37 | abi3-py313 = ["abi3" , "pyo3-build-config/abi3-py313" ] |
| 38 | |
| 39 | # Automatically generates `python3.dll` import libraries for Windows targets. |
| 40 | generate-import-lib = ["pyo3-build-config/python3-dll-a" ] |
| 41 | |
| 42 | [dev-dependencies] |
| 43 | paste = "1" |
| 44 | |
| 45 | [build-dependencies] |
| 46 | pyo3-build-config = { path = "../pyo3-build-config" , version = "=0.24.2" , features = ["resolve-config" ] } |
| 47 | |
| 48 | [lints] |
| 49 | workspace = true |
| 50 | |
| 51 | [package.metadata.cpython] |
| 52 | min-version = "3.7" |
| 53 | max-version = "3.13" # inclusive |
| 54 | |
| 55 | [package.metadata.pypy] |
| 56 | min-version = "3.9" |
| 57 | max-version = "3.11" # inclusive |
| 58 | |