Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cython code generated for feature flagged logic deprecated by Cython compiler #1044

Open
twitu opened this issue Jan 17, 2025 · 0 comments
Open

Comments

@twitu
Copy link

twitu commented Jan 17, 2025

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 logic1 and has started showing warnings in the latest version.

Footnotes

  1. https://cython.readthedocs.io/en/latest/src/userguide/migrating_to_cy30.html#deprecated-def-if

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant