From 377243ca7c9a6f5ab01a7708a2ecba55fed01709 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: Wed, 18 Jun 2025 16:06:13 +0300 Subject: [PATCH 1/2] Remove the unstable `rustc-dep-of-std` feature --- Cargo.lock | 14 -------------- Cargo.toml | 6 ------ 2 files changed, 20 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cd6128ed..557be3df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -29,22 +29,14 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268" -[[package]] -name = "compiler_builtins" -version = "0.1.160" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6376049cfa92c0aa8b9ac95fae22184b981c658208d4ed8a1dc553cd83612895" - [[package]] name = "getrandom" version = "0.3.3" dependencies = [ "cfg-if", - "compiler_builtins", "js-sys", "libc", "r-efi", - "rustc-std-workspace-core", "wasi", "wasm-bindgen", "wasm-bindgen-test", @@ -112,12 +104,6 @@ version = "5.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" -[[package]] -name = "rustc-std-workspace-core" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa9c45b374136f52f2d6311062c7146bff20fec063c3f5d46a410bd937746955" - [[package]] name = "same-file" version = "1.0.6" diff --git a/Cargo.toml b/Cargo.toml index 4a982ee7..03b188be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,8 +15,6 @@ exclude = [".*"] # Implement std::error::Error for getrandom::Error and # use std to retrieve OS error descriptions std = [] -# Unstable feature to support being a libstd dependency -rustc-dep-of-std = ["dep:compiler_builtins", "dep:core"] # Optional backend: wasm_js # This flag enables the backend but does not select it. To use the backend, use @@ -28,10 +26,6 @@ wasm_js = ["dep:wasm-bindgen", "dep:js-sys"] [dependencies] cfg-if = "1" -# When built as part of libstd -compiler_builtins = { version = "0.1", optional = true } -core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" } - # getrandom / linux_android_with_fallback [target.'cfg(all(any(target_os = "linux", target_os = "android"), not(any(all(target_os = "linux", target_env = ""), getrandom_backend = "custom", getrandom_backend = "linux_raw", getrandom_backend = "rdrand", getrandom_backend = "rndr"))))'.dependencies] libc = { version = "0.2.154", default-features = false } From 9408c402440e0e2c91b052a16ef953ae2448230f 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: Wed, 18 Jun 2025 16:11:19 +0300 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4619a731..d310fb57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - `unsupported` opt-in backend [#667] +### Removed +- Unstable `rustc-dep-of-std` crate feature [#694] + [#667]: https://github.com/rust-random/getrandom/pull/667 [#688]: https://github.com/rust-random/getrandom/pull/688 +[#694]: https://github.com/rust-random/getrandom/pull/694 ## [0.3.3] - 2025-05-09