1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[cfg(feature = "derive")] mod derive; fn main() { #[cfg(feature = "bindings")] { // https://pyo3.rs/v0.25.1/building-and-distribution.html#macos pyo3_build_config::add_extension_module_link_args(); pyo3_build_config::add_python_framework_link_args(); } #[cfg(feature = "derive")] crate::derive::main(); }