Unconditionally use no_std

And use `extern crate std;` when libstd is necessary.
This commit is contained in:
bjorn3
2024-03-10 17:26:35 +01:00
parent 56642539bc
commit 30568c5ee0
+4 -1
View File
@@ -1,7 +1,10 @@
#![cfg_attr(not(any(test, feature = "std")), no_std)]
#![no_std]
//! A super simple initfs, only meant to be loaded into RAM by the bootloader, and then directly be
//! read.
#[cfg(any(test, feature = "std"))]
extern crate std;
use core::convert::{TryFrom, TryInto};
pub mod types;