Better support rustc 1.64+ by not requiring `RUSTC_BOOTSTRAP`
[dnssec-prover] / src / http.rs
index ab162c94e68f2e5d65c9adfcbcd7f3cfb723250f..76c54c1b02b8e43c341c0ef52a725eead8d32683 100644 (file)
@@ -4,8 +4,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.
-#![cfg_attr(feature = "validation", allow(stable_features))]
-#![cfg_attr(feature = "validation", feature(const_slice_from_raw_parts))]
+#![cfg_attr(all(feature = "validation", rust_1_63), feature(const_slice_from_raw_parts))]
 
 extern crate alloc;