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_::GilUsed;pub use impl_::InterpreterConfig;pub use impl_::InterpreterConfigBuilder;pub use impl_::PythonAbi;pub use impl_::PythonAbiBuilder;pub use impl_::PythonAbiKind;pub use impl_::PythonImplementation;pub use impl_::PythonVersion;pub use impl_::StableAbi;
Modulesยง
- errors ๐
- impl_ ๐
- pyo3_
build_ ๐ปscript_ impl - Private exports used in PyO3โs build.rs
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_
python_ ๐framework_ link_ args - add_
extension_ module_ link_ args - Adds linker arguments suitable for linking an extension module.
- add_
libpython_ rpath_ link_ args - Adds linker arguments to set rpath when embedding Python within a Rust binary.
- add_
python_ framework_ link_ args - Adds linker arguments suitable for linking against the Python framework on macOS.
- get
- Loads the configuration determined from the build environment.
- get_
inner ๐ - print_
expected_ ๐ปcfgs - Registers
pyo3s config names as reachable cfg expressions - rustc_
minor_ ๐version - use_
pyo3_ cfgs - Adds all the
#[cfg]flags to the current compilation.