Skip to content

Commit aa034a2

Browse files
authored
Remove the unstable rustc-dep-of-std feature (#694)
The feature was initially added for potential use of `getrandom` in `std`. Unfortunately, the proposal did not get traction, so the feature is effectively useless. Before reviving this feature we should resolve #365 at the very least and even with that it's unlikely that `getrandom` will be used by `std` considering the proposals to properly expose entropy sources in `std`. Closes #693
1 parent 5fe2780 commit aa034a2

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Added
1313
- `unsupported` opt-in backend [#667]
1414

15+
### Removed
16+
- Unstable `rustc-dep-of-std` crate feature [#694]
17+
1518
[#667]: https://github.com/rust-random/getrandom/pull/667
1619
[#688]: https://github.com/rust-random/getrandom/pull/688
20+
[#694]: https://github.com/rust-random/getrandom/pull/694
1721

1822
## [0.3.3] - 2025-05-09
1923

Cargo.lock

Lines changed: 0 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ exclude = [".*"]
1515
# Implement std::error::Error for getrandom::Error and
1616
# use std to retrieve OS error descriptions
1717
std = []
18-
# Unstable feature to support being a libstd dependency
19-
rustc-dep-of-std = ["dep:compiler_builtins", "dep:core"]
2018

2119
# Optional backend: wasm_js
2220
# 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"]
2826
[dependencies]
2927
cfg-if = "1"
3028

31-
# When built as part of libstd
32-
compiler_builtins = { version = "0.1", optional = true }
33-
core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" }
34-
3529
# getrandom / linux_android_with_fallback
3630
[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]
3731
libc = { version = "0.2.154", default-features = false }

0 commit comments

Comments
 (0)