Christopher Durham
4d93f60568
use generic Atomic type where possible
...
in core/alloc/std only for now, and ignoring test files
Co-authored-by: Pavel Grigorenko <GrigorenkoPV@ya.ru>
2025-04-27 02:18:08 +03:00
Mads Marquart
a7bafc0afc
Change the syntax of the internal weak! macro
...
Change the syntax to include parameter names and a trailing semicolon.
Motivation:
- Mirror the `syscall!` macro.
- Allow rustfmt to format it (when wrapped in parentheses).
- For better documentation (having the parameter names available in
the source code is a bit nicer).
- Allow future improvements to this macro where we can sometimes use the
symbol directly when it's statically known to be available.
2025-03-26 16:25:05 +01:00
Taiki Endo
68267d0aed
Fix build failure on Trusty
2025-03-19 02:05:01 +09:00
Jacob Pratt
b3b7a3b8d2
Rollup merge of #137621 - Berrysoft:cygwin-std, r=joboet
...
Add std support to cygwin target
2025-03-17 05:47:49 -04:00
Nicole LeGare
87ca2dbb00
Apply rustc-0023-Add-Trusty-OS-support-to-Rust-std.patch
2025-03-10 10:00:24 -07:00
王宇逸
c3051b1f5a
Unify cygwin & horizon random impl
2025-03-10 21:23:32 +08:00
王宇逸
268e734996
Impl cygwin rand with getrandom
2025-03-10 21:23:31 +08:00
王宇逸
d24c6a29f5
Fix code style
2025-03-10 21:23:31 +08:00
王宇逸
1aad114afd
Fix building for cygwin
2025-03-10 21:23:31 +08:00
Li Keqing
35febd7a6d
Fix *-win7-windows-msvc target since 26eeac1a1e
2025-02-19 18:05:37 +08:00
Michael Goulet
a4e7f8f9bf
Mark extern blocks as unsafe
2025-02-09 17:11:13 +00:00
Jan Sommer
a4a06b305d
Use arc4random of libc for RTEMS target
...
Is available since libc 0.2.162
2024-11-21 23:10:19 +01:00
Ralf Jung
854e3c43e0
library: consistently use American spelling for 'behavior'
2024-10-25 12:02:47 +02:00
Henry Jiang
8ca39104f1
AIX use /dev/urandom for impl
2024-10-22 20:18:11 -04:00
Jan Sommer
e20636a786
Add entropy source for RTEMS
2024-10-18 10:26:59 +02:00
Huang Qi
24f622cf80
Initial std library support for NuttX
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-09-24 15:35:40 +08:00
joboet
b9d47cfa9b
std: switch to faster random sources on macOS and most BSDs
2024-09-23 10:36:16 +02:00
joboet
5c1c725724
std: implement the random feature
...
Implements the ACP https://github.com/rust-lang/libs-team/issues/393 .
2024-09-23 10:29:51 +02:00