rust/library/std/src
joboet 207ee73b7a
std: refactor UNIX random data generation
This PR makes a number of changes to the UNIX randomness implementation:
* Use `io::Error` for centralized error handling
* Move the file-fallback logic out of the `getrandom`-specific module
* Stop redefining the syscalls on macOS and DragonFly, they have appeared in `libc`
* Add a `OnceLock` to cache the random device file descriptor
2024-08-04 18:39:59 +02:00
..
backtrace remove redundant imports 2023-12-10 10:56:22 +08:00
collections Reformat use declarations. 2024-07-29 08:26:52 +10:00
env remove redundant imports 2023-12-10 10:56:22 +08:00
error Reformat use declarations. 2024-07-29 08:26:52 +10:00
f16 Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68 2024-07-30 17:49:08 +00:00
f32 Reformat use declarations. 2024-07-29 08:26:52 +10:00
f64 Reformat use declarations. 2024-07-29 08:26:52 +10:00
f128 Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68 2024-07-30 17:49:08 +00:00
ffi Reformat use declarations. 2024-07-29 08:26:52 +10:00
fs Reformat use declarations. 2024-07-29 08:26:52 +10:00
hash Reformat use declarations. 2024-07-29 08:26:52 +10:00
io Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68 2024-07-30 17:49:08 +00:00
net Reformat use declarations. 2024-07-29 08:26:52 +10:00
num removed nonfunctioning benchmark 2024-01-11 11:30:12 -05:00
os Rollup merge of #127586 - zachs18:more-must-use, r=cuviper 2024-08-03 11:17:42 +02:00
panic
path Reformat use declarations. 2024-07-29 08:26:52 +10:00
pipe Cleanup sys module to match house style 2024-07-30 19:22:54 +00:00
prelude Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
process Reformat use declarations. 2024-07-29 08:26:52 +10:00
sync Auto merge of #128461 - matthiaskrgr:rollup-3dpp11g, r=matthiaskrgr 2024-08-01 02:26:32 +00:00
sys std: refactor UNIX random data generation 2024-08-04 18:39:59 +02:00
sys_common Reformat use declarations. 2024-07-29 08:26:52 +10:00
thread Reformat use declarations. 2024-07-29 08:26:52 +10:00
time Reformat use declarations. 2024-07-29 08:26:52 +10:00
alloc.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
ascii.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
backtrace.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
env.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
error.rs chore: refactor backtrace formatting 2024-08-02 00:24:29 +09:00
f16.rs Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68 2024-07-30 17:49:08 +00:00
f32.rs android: Remove libstd hacks for unsupported Android APIs 2024-07-31 01:03:36 +00:00
f64.rs android: Remove libstd hacks for unsupported Android APIs 2024-07-31 01:03:36 +00:00
f128.rs Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68 2024-07-30 17:49:08 +00:00
fs.rs Auto merge of #128083 - Mark-Simulacrum:bump-bootstrap, r=albertlarsan68 2024-07-30 17:49:08 +00:00
keyword_docs.rs Fix doc nits 2024-07-26 13:26:33 +01:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Rollup merge of #128368 - nnethercote:rustfmt-tweaks, r=cuviper 2024-08-03 11:17:44 +02:00
macros.rs Document the column numbers for the dbg! macro 2024-07-17 14:10:41 +02:00
num.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
panic.rs chore: refactor backtrace style in panic 2024-08-03 11:12:16 +09:00
panicking.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
pat.rs Add pattern types to parser 2024-04-08 11:57:17 +00:00
path.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
pipe.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
process.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
rt.rs Use #[rustfmt::skip] on some use groups to prevent reordering. 2024-07-19 13:26:48 +10:00
time.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00