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:
parent
0cb6eba6e7
commit
8582173128
8 changed files with 31 additions and 10 deletions
6
ci.sh
6
ci.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue