From d77151211f795b07acd4e321a3e39dc156d7fcb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Tue, 17 Nov 2026 05:47:46 +0300 Subject: [PATCH 1/3] Enable `extern_item_default_impls` unstable feature for the `extern_impl` backend --- .github/workflows/build.yml | 4 ++-- .github/workflows/nopanic.yaml | 2 +- .github/workflows/tests.yml | 4 ++-- .github/workflows/workspace.yml | 4 ++-- CHANGELOG.md | 3 +++ src/lib.rs | 2 +- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0705d95e..70eaf77e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -156,7 +156,7 @@ jobs: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2025-09-28 + toolchain: nightly-2026-11-16 components: rust-src - env: RUSTFLAGS: -Dwarnings --cfg getrandom_backend="linux_raw" @@ -188,7 +188,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: targets: ${{ matrix.target.target }} - toolchain: nightly-2026-11-15 + toolchain: nightly-2026-11-16 components: rust-src - uses: Swatinem/rust-cache@v2 - name: Build diff --git a/.github/workflows/nopanic.yaml b/.github/workflows/nopanic.yaml index a902e6a9..f1434a22 100644 --- a/.github/workflows/nopanic.yaml +++ b/.github/workflows/nopanic.yaml @@ -137,7 +137,7 @@ jobs: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2025-09-28 + toolchain: nightly-2026-11-16 components: rust-src - run: cargo build --release - run: cargo build --release --target=x86_64-win7-windows-msvc -Zbuild-std="std,panic_abort" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a41d4f25..3a467726 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -157,7 +157,7 @@ jobs: # Win7 targets are Tier3, so pin a nightly where libstd builds. - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2025-09-28 + toolchain: nightly-2026-11-16 components: rust-src - uses: Swatinem/rust-cache@v2 - run: cargo test --target=x86_64-win7-windows-msvc -Z build-std --features=std,sys_rng @@ -179,7 +179,7 @@ jobs: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2025-09-28 + toolchain: nightly-2026-11-16 components: rust-src # Use --all-targets to skip doctests, which don't work with the -Zsanitizer=memory flag. # See: https://github.com/rust-lang/rust/issues/134172 diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index 1550a5d4..4234cded 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -23,7 +23,7 @@ jobs: # Fixed Nigthly version is used to prevent # CI failures which are not relevant to PR changes # on introduction of new Clippy lints. - toolchain: nightly-2025-09-28 + toolchain: nightly-2026-11-16 components: clippy,rust-src - name: std feature run: cargo clippy --features std @@ -110,7 +110,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: # We need Nightly for doc_cfg - toolchain: nightly-2026-01-25 + toolchain: nightly-2026-11-16 - uses: Swatinem/rust-cache@v2 - name: Generate Docs env: diff --git a/CHANGELOG.md b/CHANGELOG.md index f61e82f3..5ee15ab8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Removed `wasm-bindgen-test` dev dependency ([#870]) - Use `libc::getrandom` on Redox instead of reading `/dev/urandom` ([#871]) - Use `CCRandomGenerateBytes` on macOS instead of `getentropy` ([#879]) +- Enable `extern_item_default_impls` unstable feature in addition to + `extern_item_impls` for the `extern_impl` backend ([#882]) [0.4.4]: https://github.com/rust-random/getrandom/compare/v0.4.3...master [#861]: https://github.com/rust-random/getrandom/pull/861 @@ -27,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#871]: https://github.com/rust-random/getrandom/pull/871 [#876]: https://github.com/rust-random/getrandom/pull/876 [#879]: https://github.com/rust-random/getrandom/pull/879 +[#882]: https://github.com/rust-random/getrandom/pull/882 ## [0.4.3] - 2026-06-17 ### Added diff --git a/src/lib.rs b/src/lib.rs index b2afd95f..4c3f6eaf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ #![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(getrandom_backend = "efi_rng", feature(uefi_std))] #![cfg_attr(getrandom_backend = "extern_impl", allow(incomplete_features))] -#![cfg_attr(getrandom_backend = "extern_impl", feature(extern_item_impls))] +#![cfg_attr(getrandom_backend = "extern_impl", feature(extern_item_impls, extern_item_default_impls))] #[macro_use] extern crate cfg_if; From ac3a3e15a3081aa3f8320622ea0be07b8b5d0c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Tue, 17 Nov 2026 05:50:51 +0300 Subject: [PATCH 2/3] fmt --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4c3f6eaf..2ce4efa7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,10 @@ #![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(getrandom_backend = "efi_rng", feature(uefi_std))] #![cfg_attr(getrandom_backend = "extern_impl", allow(incomplete_features))] -#![cfg_attr(getrandom_backend = "extern_impl", feature(extern_item_impls, extern_item_default_impls))] +#![cfg_attr( + getrandom_backend = "extern_impl", + feature(extern_item_impls, extern_item_default_impls) +)] #[macro_use] extern crate cfg_if; From c0504e7d68692e11b38492e835941d58a5ed3f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Tue, 17 Nov 2026 06:02:17 +0300 Subject: [PATCH 3/3] Revert Nightly version bump for the `sanitizer-linux` job --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3a467726..acfd28cd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -179,7 +179,7 @@ jobs: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2026-11-16 + toolchain: nightly-2025-09-28 components: rust-src # Use --all-targets to skip doctests, which don't work with the -Zsanitizer=memory flag. # See: https://github.com/rust-lang/rust/issues/134172