diff --git a/Cargo.toml b/Cargo.toml index 15638f4..b6324f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,9 @@ std = [] # Supports const trait implementation through const_convert and const_trait_impl. Support for those was removed # from more recent Rust nightlies, so this feature requires an older Rust compiler -# (2023-04-20 is broken, 2022-11-23 works. The exact day is somewhere inbetween) +# (2023-04-20 is broken, 2022-11-23 works. The exact day is somewhere inbetween). +# As of 12/2/2024, this also uses inline_const. This has been stabilized but is required for current code to work +# on the old compiler. const_convert_and_const_trait_impl = [] # core::fmt::Step is currently unstable and is available on nightly behind a feature gate diff --git a/src/lib.rs b/src/lib.rs index adce457..d22f151 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr( feature = "const_convert_and_const_trait_impl", - feature(const_convert, const_trait_impl) + feature(const_convert, const_trait_impl, inline_const) )] #![cfg_attr(feature = "step_trait", feature(step_trait))]