Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
pyo3-macros-backend 0.25.1 - Docs.rs
[go: Go Back, main page]

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 }
}