From d6eac85d43a7aa22198726dc4e6354be28d08ad9 Mon Sep 17 00:00:00 2001 From: theoddgarlic Date: Tue, 2 Aug 2022 07:05:57 +0000 Subject: [PATCH 1/3] fix std dependency, blame Monadic Cat --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9eb3378..713e991 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -once_cell = { version = "1.10.0", default-features = false, features = ["std"], optional = true } +once_cell = { version = "1.10.0", default-features = false, optional = true } rand_core = { version = "0.6", default-features = false, optional = true } rand_pcg = { version = "0.3.1", default-features = false, optional = true } From 34ac6c711e135569f4db3bf0f21d1d72a40778fd Mon Sep 17 00:00:00 2001 From: theoddgarlic Date: Tue, 2 Aug 2022 10:06:04 +0000 Subject: [PATCH 2/3] get rid of dep: namespaced features --- Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 713e991..a79732a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,8 +17,8 @@ rand_core = { version = "0.6", default-features = false, optional = true, featur [features] default = ["rng", "pcg_rng", "io"] # Controls availability of the `rand` module, which provides seeding for `rand` (the crate) RNGs. -rng = ["dep:rand_core"] +rng = ["rand_core"] # Controls the availability of `obtain_rng`, which internally uses `rand_pcg`. -pcg_rng = ["rng", "dep:rand_pcg"] +pcg_rng = ["rng", "rand_pcg"] # Controls the availability of the cross platform `io` module. -io = ["dep:once_cell"] +io = ["once_cell"] From 5be98e581d702cab9078de85fee1ed9df420710a Mon Sep 17 00:00:00 2001 From: theoddgarlic Date: Tue, 2 Aug 2022 10:10:09 +0000 Subject: [PATCH 3/3] Add #![no_std] --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index c4493fa..880f23e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,6 +8,7 @@ //! ```text //! RUSTFLAGS='--cfg=ableOS' cargo build --target=wasm32-unknown-unknown //! ``` +#![no_std] #[macro_use] pub mod logger;