numpy 0.30.0

PyO3-based Rust bindings of the NumPy C-API
Documentation
// This file matches the numpyconfig.h header.

use std::ffi::c_uint;

/// The current target ABI version
const NPY_ABI_VERSION: c_uint = 0x02000000;

/// The current target API version
const NPY_API_VERSION: c_uint = if cfg!(all(Py_LIMITED_API, Py_GIL_DISABLED)) {
    // (v2.5)
    0x00000016
} else {
    // (v1.15)
    0x0000000c
};

pub(super) const NPY_2_0_API_VERSION: c_uint = 0x00000012;

/// The current version of the `ndarray` object (ABI version).
pub const NPY_VERSION: c_uint = NPY_ABI_VERSION;
/// The current version of C API.
pub const NPY_FEATURE_VERSION: c_uint = NPY_API_VERSION;
/// The string representation of current version C API.
pub const NPY_FEATURE_VERSION_STRING: &str = if cfg!(all(Py_LIMITED_API, Py_GIL_DISABLED)) {
    "2.5"
} else {
    "1.15"
};