File tree Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -108,3 +108,18 @@ jobs:
108108 version : latest
109109 - name : Fuzz Base w/ RustCrypto
110110 run : cargo fuzz run base -- -runs=10000
111+
112+ no-std-check :
113+ runs-on : ubuntu-latest
114+ steps :
115+ - uses : actions/checkout@v2
116+ # we use a target that lacks a pre-compiled libstd to check if any dependency is using libstd
117+ - name : Install stable toolchain
118+ uses : actions-rs/toolchain@v1
119+ with :
120+ toolchain : stable
121+ target : thumbv7em-none-eabihf
122+ default : true
123+ - name : build crates in no-std mode
124+ run : cargo check --target thumbv7em-none-eabihf
125+ working-directory : no-std-support-check
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ Cargo.lock
33** /* .rs.bk
44.vscode /
55evercrypt_provider /target
6+ no-std-support-check /target
67rust_crypto_provider /target
78traits /target /
89.DS_Store
Original file line number Diff line number Diff line change 1+ [package ]
2+ edition = " 2021"
3+ name = " no-std-support-check"
4+ publish = false
5+ version = " 0.0.0"
6+
7+ [dependencies ]
8+ hpke-rs = { path = " .." }
9+ hpke-rs-crypto = { path = " ../traits" }
10+ hpke-rs-rust-crypto = { path = " ../rust_crypto_provider" }
11+
12+ # the no-std-support-check CI job uses the `thumbv7em-none-eabihf` target
13+ # `getrandom` does not support that target out of box so this feature needs to be enabled to avoid a compilation error
14+ # (normally this feature should NOT be enabled in a library but this crate is just used for a CI check)
15+ getrandom = { version = " 0.2.11" , features = [" custom" ] }
Original file line number Diff line number Diff line change 1+ //! used in CI to check that crates are no-std compatible
2+
3+ #![ no_std]
You can’t perform that action at this time.
0 commit comments