cbindgen icon indicating copy to clipboard operation
cbindgen copied to clipboard

Cython code generated for feature flagged logic deprecated by Cython compiler

Open twitu opened this issue 11 months ago • 0 comments

For feature flagged logic like below. Full example here.

#[cfg(not(feature = "high_precision"))]
pub const MAX: u64 = 100;
#[cfg(feature = "high_precision")]
pub const MAX: u128 = 50;
[defines]
"feature = high_precision" = "DEFINE_HIGH_PRECISION"
    IF not DEFINE_HIGH_PRECISION:
        const uint64_t MAX # = 100

However, Cython compiler is deprecating IF DEF logic^1 and has started showing warnings in the latest version.

twitu avatar Jan 17 '25 16:01 twitu