Skip to content

Commit 968dd48

Browse files
authored
Release v0.2.13 (#405)
* Release v0.2.13 * Tweak web tests * Apply `continue-on-error: true` for the whole Web Windows job * Update release date * Test Edge only on Windows * Fix path in `.cargo/config` symlink * Update wasmpack to v0.12.1
1 parent 8ffd43e commit 968dd48

File tree

6 files changed

+34
-18
lines changed

6 files changed

+34
-18
lines changed

.cargo/config

-9
This file was deleted.

.cargo/config

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config.toml

.cargo/config.toml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Allow normal use of "cargo run" and "cargo test" on these wasm32 platforms.
2+
[target.wasm32-unknown-unknown]
3+
runner = 'wasm-bindgen-test-runner'
4+
[target.wasm32-wasi]
5+
runner = 'wasmtime'
6+
7+
# Just run on node by default (that's where emscripten is tested)
8+
[target.'cfg(target_os = "emscripten")']
9+
runner = 'node'

.github/workflows/tests.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ jobs:
229229
host: x86_64-unknown-linux-musl
230230
- os: windows-2022
231231
host: x86_64-pc-windows-msvc
232+
# We get spurious failures on Windows, see:
233+
# https://github.com/rust-random/getrandom/issues/400
234+
continue-on-error: true
232235
- os: macos-12
233236
host: x86_64-apple-darwin
234237
runs-on: ${{ matrix.os }}
@@ -240,7 +243,7 @@ jobs:
240243
- name: Install precompiled wasm-pack
241244
shell: bash
242245
run: |
243-
VERSION=v0.11.0
246+
VERSION=v0.12.1
244247
URL=https://github.com/rustwasm/wasm-pack/releases/download/${VERSION}/wasm-pack-${VERSION}-${{ matrix.host }}.tar.gz
245248
wget -O - $URL | tar -xz --strip-components=1 -C ~/.cargo/bin
246249
wasm-pack --version
@@ -253,13 +256,9 @@ jobs:
253256
run: wasm-pack test --headless --chrome --features=js,test-in-browser
254257
- name: Test (Edge)
255258
if: runner.os == 'Windows'
256-
# Edge has flaky failures: "driver failed to bind port during startup"
257-
continue-on-error: true
258259
run: wasm-pack test --headless --chrome --chromedriver $Env:EDGEWEBDRIVER\msedgedriver.exe --features=js,test-in-browser
259260
- name: Test (Safari)
260261
if: runner.os == 'macOS'
261-
# Safari tests are broken: https://github.com/rustwasm/wasm-bindgen/issues/3004
262-
continue-on-error: true
263262
run: wasm-pack test --headless --safari --features=js,test-in-browser
264263
- name: Test (custom getrandom)
265264
run: wasm-pack test --node --features=custom

CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## Unreleased
7+
## [0.2.13] - 2024-04-06
88
### Added
99
- `linux_disable_fallback` crate feature to disable `/dev/urandom`-based fallback on Linux and
10-
Android targets. Enabling this feature bumps minimum supported Linux kernel version to 4.17 and
10+
Android targets. Enabling this feature bumps minimum supported Linux kernel version to 3.17 and
1111
Android API level to 23 (Marshmallow). [#396]
1212

1313
### Changed
@@ -433,6 +433,7 @@ Publish initial implementation.
433433
## [0.0.0] - 2019-01-19
434434
Publish an empty template library.
435435

436+
[0.2.13]: https://github.com/rust-random/getrandom/compare/v0.2.12...v0.2.13
436437
[0.2.12]: https://github.com/rust-random/getrandom/compare/v0.2.11...v0.2.12
437438
[0.2.11]: https://github.com/rust-random/getrandom/compare/v0.2.10...v0.2.11
438439
[0.2.10]: https://github.com/rust-random/getrandom/compare/v0.2.9...v0.2.10

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "getrandom"
3-
version = "0.2.12" # Also update html_root_url in lib.rs when bumping this
3+
version = "0.2.13" # Also update html_root_url in lib.rs when bumping this
44
edition = "2018"
55
authors = ["The Rand Project Developers"]
66
license = "MIT OR Apache-2.0"

src/lib.rs

+16-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@
4747
//! This prevents a crate from overriding a secure source of randomness
4848
//! (either accidentally or intentionally).
4949
//!
50+
//! ## `/dev/urandom` fallback on Linux and Android
51+
//!
52+
//! On Linux targets the fallback is present only for the following `target_arch`es:
53+
//! `aarch64`, `arm`, `powerpc`, `powerpc64`, `s390x`, `x86`, `x86_64`. Other supported
54+
//! `target_arch`es [require](https://doc.rust-lang.org/stable/rustc/platform-support.html)
55+
//! kernel versions which support `getrandom` system call, so fallback is not needed.
56+
//!
57+
//! On Android targets the fallback is present only for the following `target_arch`es:
58+
//! `aarch64`, `arm`, `x86`, `x86_64`. Other `target_arch`es (e.g. RISC-V) require
59+
//! sufficiently high API levels.
60+
//!
61+
//! The fallback can be disabled by enabling the `linux_disable_fallback` crate feature.
62+
//! Note that doing so will bump minimum supported Linux kernel version to 3.17 and
63+
//! Android API level to 23 (Marshmallow).
64+
//!
5065
//! ### RDRAND on x86
5166
//!
5267
//! *If the `rdrand` Cargo feature is enabled*, `getrandom` will fallback to using
@@ -189,7 +204,7 @@
189204
#![doc(
190205
html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
191206
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
192-
html_root_url = "https://docs.rs/getrandom/0.2.12"
207+
html_root_url = "https://docs.rs/getrandom/0.2.13"
193208
)]
194209
#![no_std]
195210
#![warn(rust_2018_idioms, unused_lifetimes, missing_docs)]

0 commit comments

Comments
 (0)