Skip to content

Commit ca352c7

Browse files
Fix no_std build, add to CI. (#325)
This had been broken in b0e2960.
1 parent 3c93c07 commit ca352c7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,25 @@ jobs:
6464
working-directory: fuzz
6565
run: ./travis_fuzz.sh
6666

67+
no-std:
68+
name: no_std
69+
runs-on: ubuntu-latest
70+
steps:
71+
- uses: actions/checkout@v4
72+
- name: Install toolchain
73+
uses: dtolnay/rust-toolchain@master
74+
with:
75+
toolchain: stable
76+
target: thumbv7m-none-eabi
77+
- name: Cargo build
78+
run: cargo build --verbose
79+
6780
build_result:
6881
name: homu build finished
6982
runs-on: ubuntu-latest
7083
needs:
7184
- "linux-ci"
85+
- "no-std"
7286

7387
steps:
7488
- name: Mark the job as successful

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#[doc(hidden)]
5656
pub extern crate alloc;
5757

58-
// #[cfg(any(test, feature = "write"))]
58+
#[cfg(any(test, feature = "write"))]
5959
extern crate std;
6060

6161
#[cfg(test)]

0 commit comments

Comments
 (0)