diff --git a/components/rustlib/src/lib.rs b/components/rustlib/src/lib.rs index bfff372..c10bbbc 100644 --- a/components/rustlib/src/lib.rs +++ b/components/rustlib/src/lib.rs @@ -1,7 +1,12 @@ #![cfg_attr(not(feature = "std"), no_std)] -#![feature(asm)] -#![cfg_attr(target_arch = "xtensa", feature(asm_experimental_arch))] +#![cfg_attr(not(version("1.59")), feature(asm))] +#![cfg_attr( + all(version("1.58"), target_arch = "xtensa"), + feature(asm_experimental_arch) + )] +#![feature(cfg_version)] +use core::arch::asm; #[cfg(not(feature = "std"))] use core::panic::PanicInfo;