Crate pyo3_build_config[][src]

Expand description

Configuration used by PyO3 for conditional support of varying Python versions.

This crate exposes two functions, use_pyo3_cfgs and add_extension_module_link_args, which are intended 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.

Functions

Adds linker arguments (for macOS) suitable for PyO3’s extension-module feature.

Adds all the #[cfg] flags to the current compilation.