Skip to content

Commit a2268c0

Browse files
committed
Add no_std checks
1 parent ebf6bf2 commit a2268c0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.circleci/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ jobs:
288288
- restore_cache:
289289
keys:
290290
- cargocache-v2-package_core-rust:1.73-{{ checksum "Cargo.lock" }}
291+
- run:
292+
name: Add thumbv7em-none-eabi target
293+
command: rusup target add thumbv7em-none-eabi && rustup target list --installed
291294
- run:
292295
name: Add wasm32 target
293296
command: rustup target add wasm32-unknown-unknown && rustup target list --installed
@@ -299,6 +302,10 @@ jobs:
299302
name: Build library for wasm target (no features)
300303
working_directory: ~/project/packages/core
301304
command: cargo wasm --locked --no-default-features
305+
- run:
306+
name: Build library for no_std target (no features)
307+
working_directory: ~/project/packages/core
308+
command: cargo no-std --locked --no-default-features
302309
- run:
303310
name: Run unit tests (no features)
304311
working_directory: ~/project/packages/core

packages/core/.cargo/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[alias]
2+
no-std = "build --release --lib --target thumbv7em-none-eabi"
23
wasm = "build --release --lib --target wasm32-unknown-unknown"
34
wasm-debug = "build --lib --target wasm32-unknown-unknown"
45
unit-test = "test --lib"

0 commit comments

Comments
 (0)