Fix no_std build

This fixes the `no_std` build and also makes sure it's tested properly
in the CI workflow.
This commit is contained in:
Christopher Serr 2024-02-12 17:34:28 +01:00 • committed by Jeremy Soller
parent 0cb6eba6e7
commit 8582173128
8 changed files with 31 additions and 10 deletions

6
ci.sh
View file

@ -13,8 +13,12 @@ cargo fmt --check
echo Build with default features
build
echo Install target for no_std build
# This is necessary because Rust otherwise may silently use std regardless.
rustup target add thumbv8m.main-none-eabihf
echo Build with only no_std feature
build --no-default-features --features no_std
build --no-default-features --features no_std --target thumbv8m.main-none-eabihf
echo Build with only std feature
build --no-default-features --features std