Skip to content

Commit

Permalink
Add unlimited-api feature
Browse files Browse the repository at this point in the history
Fixes PyO3#2865.
  • Loading branch information
LilyFoote committed Aug 8, 2024
1 parent 0a185cd commit b4c1daa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ multiple-pymethods = ["inventory", "pyo3-macros/multiple-pymethods"]
# so that the module can also be used with statically linked python interpreters.
extension-module = ["pyo3-ffi/extension-module"]

# Use features not in the Python limited API. See https://www.python.org/dev/peps/pep-0384/ for more.
unlimited-api = ["pyo3-build-config/unlimited-api", "pyo3-ffi/unlimited-api"]

# Use the Python limited API. See https://www.python.org/dev/peps/pep-0384/ for more.
abi3 = ["pyo3-build-config/abi3", "pyo3-ffi/abi3"]

Expand Down
3 changes: 3 additions & 0 deletions pyo3-build-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ resolve-config = []
# This feature is enabled by pyo3 when building an extension module.
extension-module = []

# This feature is enabled by pyo3 when building extension modules that use features not in the Stable ABI.
unlimited-api = []

# These features are enabled by pyo3 when building Stable ABI extension modules.
abi3 = []
abi3-py37 = ["abi3-py38"]
Expand Down
3 changes: 3 additions & 0 deletions pyo3-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ default = []
# so that the module can also be used with statically linked python interpreters.
extension-module = ["pyo3-build-config/extension-module"]

# Use features not in the Python limited API. See https://www.python.org/dev/peps/pep-0384/ for more.
unlimited-api = ["pyo3-build-config/unlimited-api"]

# Use the Python limited API. See https://www.python.org/dev/peps/pep-0384/ for more.
abi3 = ["pyo3-build-config/abi3"]

Expand Down

0 comments on commit b4c1daa

Please sign in to comment.