Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 42 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -336,23 +336,57 @@ jobs:
# Firefox doesn't support module service workers and therefor can't import scripts
run: wasm-pack test --headless --chrome -- ${{ matrix.rust.args }}

wasi:
name: WASI
wasi_p1:
name: WASIp1
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.85
targets: wasm32-wasip1,wasm32-wasip2
targets: wasm32-wasip1
- name: Install Wasmtime
run: |
VERSION=v24.0.0
VERSION=v40.0.0
URL=https://github.com/bytecodealliance/wasmtime/releases/download/${VERSION}/wasmtime-${VERSION}-x86_64-linux.tar.xz
wget -O - $URL | tar -xJ --strip-components=1 -C ~/.cargo/bin
wasmtime --version
- uses: Swatinem/rust-cache@v2
- name: WASI 0.1 Test
run: cargo test --target wasm32-wasip1
- name: WASI 0.2 Test
run: cargo test --target wasm32-wasip2
- run: cargo test --target wasm32-wasip1

wasi_p2:
name: WASIp2
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.85
targets: wasm32-wasip2
- name: Install Wasmtime
run: |
VERSION=v40.0.0
URL=https://github.com/bytecodealliance/wasmtime/releases/download/${VERSION}/wasmtime-${VERSION}-x86_64-linux.tar.xz
wget -O - $URL | tar -xJ --strip-components=1 -C ~/.cargo/bin
wasmtime --version
- uses: Swatinem/rust-cache@v2
- run: cargo test --target wasm32-wasip2

# TODO: enable after pre-built std will be provided by Rust
# wasi_p3:
# name: WASIp3
# runs-on: ubuntu-24.04
# steps:
# - uses: actions/checkout@v6
# - uses: dtolnay/rust-toolchain@master
# with:
# toolchain: 1.90
# targets: wasm32-wasip3
# - name: Install Wasmtime
# run: |
# VERSION=v40.0.0
# URL=https://github.com/bytecodealliance/wasmtime/releases/download/${VERSION}/wasmtime-${VERSION}-x86_64-linux.tar.xz
# wget -O - $URL | tar -xJ --strip-components=1 -C ~/.cargo/bin
# wasmtime --version
# - uses: Swatinem/rust-cache@v2
# - run: cargo test --target wasm32-wasip3
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- `RawOsError` type alias [#739]
- `SysRng` behind new feature `sys_rng` [#751]
- WASIp3 support [#779]

### Changed
- Use Edition 2024 and MSRV 1.85 [#749]

[#739]: https://github.com/rust-random/getrandom/pull/739
[#749]: https://github.com/rust-random/getrandom/pull/749
[#751]: https://github.com/rust-random/getrandom/pull/751
[#779]: https://github.com/rust-random/getrandom/pull/779

## [0.3.4] - 2025-10-14

Expand Down
Loading