Better support rustc 1.64+ by not requiring `RUSTC_BOOTSTRAP`
[dnssec-prover] / src / lib.rs
index df9e45d859c29a1e0160c355d6da65c5679647c1..77c3cd94695e0a2d76f78aeb263a5567e7cb8554 100644 (file)
@@ -35,8 +35,7 @@
 
 // const_slice_from_raw_parts was stabilized in 1.64, however we support building on 1.63 as well.
 // Luckily, it seems to work fine in 1.63 with the feature flag (and RUSTC_BOOTSTRAP=1) enabled.
-#![allow(stable_features)]
-#![feature(const_slice_from_raw_parts)]
+#![cfg_attr(rust_1_63, feature(const_slice_from_raw_parts))]
 
 #![cfg_attr(not(feature = "std"), no_std)]
 extern crate alloc;