Skip to content

Commit

Permalink
sm2: can't easily test for other targets because of getrandom backends
Browse files Browse the repository at this point in the history
wasm requires a feature flag explicitely for wasm and a rustcfg flag

Thumbv7 doesn't have off-the-shelf backend for getrandom
  • Loading branch information
baloo committed Mar 5, 2025
1 parent 5249abe commit b8e9e55
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/sm2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,6 @@ env:
RUSTDOCFLAGS: "-Dwarnings"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- 1.85.0 # MSRV
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pkcs8
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,arithmetic,pkcs8

test:
runs-on: ubuntu-latest
strategy:
Expand Down
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions sm2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ The SM2 cryptosystem is composed of three distinct algorithms:
- [ ] **SM2KEP**: key exchange protocol defined in [GBT.32918.3-2016] (SM2-3)
- [x] **SM2PKE**: public key encryption algorithm defined in [GBT.32918.4-2016] (SM2-4)

## SemVer Policy

- All on-by-default features of this library are covered by SemVer

## License

All crates licensed under either of
Expand Down

0 comments on commit b8e9e55

Please sign in to comment.