diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 23ffd7a2..afc35733 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -1,8 +1,10 @@ // SPDX-License-Identifier: MIT #![no_std] #![deny(unsafe_op_in_unsafe_fn)] +#![feature(cfg_version)] #![feature(alloc_error_handler)] #![feature(new_uninit)] +#![cfg_attr(version("1.82"), feature(new_zeroed_alloc))] #[macro_use] extern crate alloc;