diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4f7dc9..8788932 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ on: workflow_dispatch: env: - rust_toolchain: stable + rust_toolchain: nightly jobs: compile: diff --git a/src/lib.rs b/src/lib.rs index 6824613..8691c0b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,11 @@ -#![cfg_attr(not(feature = "std"), no_std)] +#![no_std] #![allow(async_fn_in_trait)] +#[cfg(feature = "std")] +#[allow(unused_imports)] +#[macro_use] +extern crate std; + #[cfg(feature = "alloc")] #[allow(unused_imports)] #[macro_use]