diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e59c6e7..35f3273 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,11 +64,25 @@ jobs: working-directory: fuzz run: ./travis_fuzz.sh + no-std: + name: no_std + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + target: thumbv7m-none-eabi + - name: Cargo build + run: cargo build --verbose + build_result: name: homu build finished runs-on: ubuntu-latest needs: - "linux-ci" + - "no-std" steps: - name: Mark the job as successful diff --git a/src/lib.rs b/src/lib.rs index a54a8de..0ff1c86 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,7 +55,7 @@ #[doc(hidden)] pub extern crate alloc; -// #[cfg(any(test, feature = "write"))] +#[cfg(any(test, feature = "write"))] extern crate std; #[cfg(test)]