From 0ae89626feba454849400b2ef7900c1303cdedcb Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 5 Oct 2022 17:20:26 +0800 Subject: [PATCH] add default for crates --- xous-rs/src/definitions.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xous-rs/src/definitions.rs b/xous-rs/src/definitions.rs index 274833252..4c92a3859 100644 --- a/xous-rs/src/definitions.rs +++ b/xous-rs/src/definitions.rs @@ -55,7 +55,9 @@ pub const BASE_QUANTA_MS: u32 = 10; pub const BOOKEND_START: &'static str = "_|TT|_"; pub const BOOKEND_END: &'static str = "_|TE|_"; -#[cfg(any(feature="hosted"))] +#[cfg(any(feature="hosted", + not(any(feature="precursor", feature="renode")) +))] use core::sync::atomic::AtomicU64; // Secretly, you can change this by setting the XOUS_SEED environment variable. @@ -64,7 +66,9 @@ use core::sync::atomic::AtomicU64; // The code that reads the varable this is all the way over in xous-rs\src\arch\hosted\mod.rs#29, and // it's glommed onto some other static process initialization code because I don't fully understand // what's going on over there. -#[cfg(any(feature="hosted"))] +#[cfg(any(feature="hosted", + not(any(feature="precursor", feature="renode")) +))] pub static TESTING_RNG_SEED: AtomicU64 = AtomicU64::new(0); pub mod exceptions;