Expand description
Configuration used by PyO3 for conditional support of varying Python versions.
This crate exposes functionality to be called from build scripts to simplify building crates which depend on PyO3.
It used internally by the PyO3 crate’s build script to apply the same configuration.
Re-exports§
pub use impl_::cross_compiling_from_to;pub use impl_::find_all_sysconfigdata;pub use impl_::parse_sysconfigdata;pub use impl_::BuildFlag;pub use impl_::BuildFlags;pub use impl_::CrossCompileConfig;pub use impl_::InterpreterConfig;pub use impl_::PythonImplementation;pub use impl_::PythonVersion;
Modules§
- errors 🔒
- impl_ 🔒
- Main implementation module included in both the
pyo3-build-configlibrary crate and its build script.
Macros§
- bail 👻
- A simple macro for returning an error. Resembles anyhow::bail.
- ensure 👻
- A simple macro for checking a condition. Resembles anyhow::ensure.
- format_
warn 👻 - Format warning into string.
- warn 👻
- Show warning.
Structs§
- Triple
- An LLVM target “triple”. Historically such things had three fields, though they’ve added additional fields over time.
Functions§
- _add_
extension_ 🔒module_ link_ args - add_
extension_ module_ link_ args - Adds linker arguments suitable for linking an extension module.
- print_
expected_ 👻cfgs - Registers
pyo3s config names as reachable cfg expressions - print_
feature_ 🔒cfg - Helper to print a feature cfg with a minimum rust version required.
- print_
feature_ 👻cfgs - Use certain features if we detect the compiler being used supports them.
- rustc_
minor_ 🔒version