From b901c2706f214b3f7963152ffe826bd9cde66666 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sun, 3 Nov 2024 19:44:58 +0900 Subject: [PATCH] rust: 1.82.0 compat Signed-off-by: Hector Martin --- rust/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) 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;