Skip to content

Commit 89e279c

Browse files
committed
Increase MSRV to 1.56 and update docs
1 parent 0fe2b8b commit 89e279c

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
strategy:
4545
matrix:
4646
os: [ubuntu-22.04, windows-2022]
47-
toolchain: [nightly, beta, stable, 1.38]
47+
toolchain: [nightly, beta, stable, 1.56]
4848
# Only Test macOS on stable to reduce macOS CI jobs
4949
include:
5050
# x86_64-apple-darwin.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "getrandom"
33
version = "0.2.15" # Also update html_root_url in lib.rs when bumping this
44
edition = "2018"
5+
rust-version = "1.56"
56
authors = ["The Rand Project Developers"]
67
license = "MIT OR Apache-2.0"
78
description = "A small cross-platform library for retrieving random data from system source"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ crate features, WASM support and Custom RNGs see the
5252

5353
## Minimum Supported Rust Version
5454

55-
This crate requires Rust 1.38.0 or later.
55+
This crate requires Rust 1.56.0 or later.
5656

5757
## Platform Support
5858

src/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
//! | Target | Target Triple | Implementation
66
//! | ----------------- | ------------------ | --------------
77
//! | Linux, Android | `*‑linux‑*` | [`getrandom`][1] system call if available, otherwise [`/dev/urandom`][2] after successfully polling `/dev/random`
8-
//! | Windows | `*‑windows‑*` | [`BCryptGenRandom`]
8+
//! | Windows 10+ | `*‑windows‑*` | [`ProcessPrng`]
9+
//! | Windows 7 and 8 | `*-win7‑windows‑*` | [`RtlGenRandom`]
910
//! | macOS | `*‑apple‑darwin` | [`getentropy`][3]
1011
//! | iOS, tvOS, watchOS | `*‑apple‑ios`, `*-apple-tvos`, `*-apple-watchos` | [`CCRandomGenerateBytes`]
1112
//! | FreeBSD | `*‑freebsd` | [`getrandom`][5]
@@ -182,7 +183,8 @@
182183
//! [17]: https://www.gnu.org/software/libc/manual/html_mono/libc.html#index-getrandom
183184
//! [18]: https://github.com/rust3ds/shim-3ds/commit/b01d2568836dea2a65d05d662f8e5f805c64389d
184185
//!
185-
//! [`BCryptGenRandom`]: https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom
186+
//! [`ProcessPrng`]: https://learn.microsoft.com/en-us/windows/win32/seccng/processprng
187+
//! [`RtlGenRandom`]: https://learn.microsoft.com/en-us/windows/win32/api/ntsecapi/nf-ntsecapi-rtlgenrandom
186188
//! [`Crypto.getRandomValues`]: https://www.w3.org/TR/WebCryptoAPI/#Crypto-method-getRandomValues
187189
//! [`RDRAND`]: https://software.intel.com/en-us/articles/intel-digital-random-number-generator-drng-software-implementation-guide
188190
//! [`CCRandomGenerateBytes`]: https://opensource.apple.com/source/CommonCrypto/CommonCrypto-60074/include/CommonRandom.h.auto.html

0 commit comments

Comments
 (0)