pyo3-macros-backend 0.25.1

Code generation for PyO3 package
Documentation
1
2
3
4
5
6
7
8
9
10
11
use pyo3_build_config::PythonVersion;

pub fn is_abi3_before(major: u8, minor: u8) -> bool {
    let config = pyo3_build_config::get();
    config.abi3 && !config.is_free_threaded() && config.version < PythonVersion { major, minor }
}

pub fn is_py_before(major: u8, minor: u8) -> bool {
    let config = pyo3_build_config::get();
    config.version < PythonVersion { major, minor }
}