From 268a718f1b128f1fad20e03b6671a91c3d9bbd70 Mon Sep 17 00:00:00 2001 From: Julien THILLARD Date: Fri, 20 Mar 2026 10:52:13 +0100 Subject: [PATCH] Add more from the std --- library/std/src/backtrace | 1 - library/std/src/backtrace.rs | 1 - library/std/src/env.rs | 1 - library/std/src/error.rs | 1 - library/std/src/fs | 1 - library/std/src/fs.rs | 1 - library/std/src/hash | 1 - library/std/src/keyword_docs.rs | 1 - library/std/src/macros.rs | 1 - library/std/src/num | 1 - library/std/src/os/mod.rs | 1 - library/std/src/os/raw/mod.rs | 1 - library/std/src/os/raw/tests.rs | 1 - library/std/src/prelude | 1 - library/std/src/process.rs | 1 - library/std/src/random.rs | 1 - library/std/src/rt.rs | 1 - library/std/src/sys/args/mod.rs | 60 ----- library/std/src/sys/args/unsupported.rs | 1 - library/std/src/sys/backtrace.rs | 1 - library/std/src/sys/cmath.rs | 1 - library/std/src/sys/configure_builtins.rs | 1 - library/std/src/sys/env/common.rs | 1 - library/std/src/sys/env/mod.rs | 1 - library/std/src/sys/env/unsupported.rs | 1 - library/std/src/sys/env_consts.rs | 1 - library/std/src/sys/exit.rs | 1 - library/std/src/sys/fd/mod.rs | 1 - library/std/src/sys/fs/common.rs | 1 - library/std/src/sys/fs/mod.rs | 1 - library/std/src/sys/fs/unsupported.rs | 1 - library/std/src/sys/helpers/mod.rs | 1 - library/std/src/sys/helpers/small_c_string.rs | 1 - library/std/src/sys/helpers/tests.rs | 1 - library/std/src/sys/helpers/wstr.rs | 1 - library/std/src/sys/io/error/generic.rs | 1 - library/std/src/sys/io/error/mod.rs | 56 ----- .../std/src/sys/io/io_slice/unsupported.rs | 1 - .../std/src/sys/io/is_terminal/unsupported.rs | 1 - library/std/src/sys/io/kernel_copy/mod.rs | 1 - library/std/src/sys/io/mod.rs | 1 - library/std/src/sys/mod.rs | 1 - library/std/src/sys/net/connection/mod.rs | 1 - .../std/src/sys/net/connection/unsupported.rs | 1 - library/std/src/sys/net/hostname/mod.rs | 1 - .../std/src/sys/net/hostname/unsupported.rs | 1 - library/std/src/sys/net/mod.rs | 1 - library/std/src/sys/os_str/bytes.rs | 1 - library/std/src/sys/os_str/bytes/tests.rs | 1 - library/std/src/sys/os_str/mod.rs | 1 - library/std/src/sys/pal/mod.rs | 73 ------ library/std/src/sys/pal/unsupported/common.rs | 1 - library/std/src/sys/pal/unsupported/mod.rs | 1 - library/std/src/sys/pal/unsupported/os.rs | 1 - library/std/src/sys/path/mod.rs | 1 - library/std/src/sys/path/unix.rs | 1 - library/std/src/sys/personality/dwarf/eh.rs | 1 - library/std/src/sys/personality/dwarf/mod.rs | 1 - .../std/src/sys/personality/dwarf/tests.rs | 1 - library/std/src/sys/personality/mod.rs | 1 - library/std/src/sys/pipe/mod.rs | 1 - library/std/src/sys/pipe/unsupported.rs | 1 - library/std/src/sys/platform_version/mod.rs | 1 - library/std/src/sys/process/env.rs | 1 - library/std/src/sys/process/mod.rs | 1 - library/std/src/sys/process/unsupported.rs | 1 - library/std/src/sys/random/mod.rs | 134 ----------- library/std/src/sys/random/unsupported.rs | 1 - library/std/src/sys/stdio/mod.rs | 1 - library/std/src/sys/stdio/unsupported.rs | 1 - library/std/src/sys/sync/condvar/mod.rs | 1 - .../std/src/sys/sync/condvar/no_threads.rs | 1 - library/std/src/sys/sync/mod.rs | 1 - library/std/src/sys/sync/mutex/mod.rs | 1 - library/std/src/sys/sync/mutex/no_threads.rs | 1 - library/std/src/sys/sync/once/mod.rs | 1 - library/std/src/sys/sync/once/no_threads.rs | 1 - library/std/src/sys/sync/once_box.rs | 1 - library/std/src/sys/sync/rwlock/mod.rs | 1 - library/std/src/sys/sync/rwlock/no_threads.rs | 1 - .../std/src/sys/sync/thread_parking/mod.rs | 1 - .../sys/sync/thread_parking/unsupported.rs | 1 - library/std/src/sys/thread/mod.rs | 1 - library/std/src/sys/thread/unsupported.rs | 1 - library/std/src/sys/thread_local/mod.rs | 227 ------------------ .../std/src/sys/thread_local/no_threads.rs | 1 - library/std/src/sys/thread_local/os.rs | 1 - library/std/src/sys/time/mod.rs | 1 - library/std/src/sys/time/unsupported.rs | 1 - library/std/src/thread | 1 - library/std/src/time.rs | 1 - 91 files changed, 636 deletions(-) delete mode 120000 library/std/src/backtrace delete mode 120000 library/std/src/backtrace.rs delete mode 120000 library/std/src/env.rs delete mode 120000 library/std/src/error.rs delete mode 120000 library/std/src/fs delete mode 120000 library/std/src/fs.rs delete mode 120000 library/std/src/hash delete mode 120000 library/std/src/keyword_docs.rs delete mode 120000 library/std/src/macros.rs delete mode 120000 library/std/src/num delete mode 120000 library/std/src/os/mod.rs delete mode 120000 library/std/src/os/raw/mod.rs delete mode 120000 library/std/src/os/raw/tests.rs delete mode 120000 library/std/src/prelude delete mode 120000 library/std/src/process.rs delete mode 120000 library/std/src/random.rs delete mode 120000 library/std/src/rt.rs delete mode 100644 library/std/src/sys/args/mod.rs delete mode 120000 library/std/src/sys/args/unsupported.rs delete mode 120000 library/std/src/sys/backtrace.rs delete mode 120000 library/std/src/sys/cmath.rs delete mode 120000 library/std/src/sys/configure_builtins.rs delete mode 120000 library/std/src/sys/env/common.rs delete mode 120000 library/std/src/sys/env/mod.rs delete mode 120000 library/std/src/sys/env/unsupported.rs delete mode 120000 library/std/src/sys/env_consts.rs delete mode 120000 library/std/src/sys/exit.rs delete mode 120000 library/std/src/sys/fd/mod.rs delete mode 120000 library/std/src/sys/fs/common.rs delete mode 120000 library/std/src/sys/fs/mod.rs delete mode 120000 library/std/src/sys/fs/unsupported.rs delete mode 120000 library/std/src/sys/helpers/mod.rs delete mode 120000 library/std/src/sys/helpers/small_c_string.rs delete mode 120000 library/std/src/sys/helpers/tests.rs delete mode 120000 library/std/src/sys/helpers/wstr.rs delete mode 120000 library/std/src/sys/io/error/generic.rs delete mode 100644 library/std/src/sys/io/error/mod.rs delete mode 120000 library/std/src/sys/io/io_slice/unsupported.rs delete mode 120000 library/std/src/sys/io/is_terminal/unsupported.rs delete mode 120000 library/std/src/sys/io/kernel_copy/mod.rs delete mode 120000 library/std/src/sys/io/mod.rs delete mode 120000 library/std/src/sys/mod.rs delete mode 120000 library/std/src/sys/net/connection/mod.rs delete mode 120000 library/std/src/sys/net/connection/unsupported.rs delete mode 120000 library/std/src/sys/net/hostname/mod.rs delete mode 120000 library/std/src/sys/net/hostname/unsupported.rs delete mode 120000 library/std/src/sys/net/mod.rs delete mode 120000 library/std/src/sys/os_str/bytes.rs delete mode 120000 library/std/src/sys/os_str/bytes/tests.rs delete mode 120000 library/std/src/sys/os_str/mod.rs delete mode 100644 library/std/src/sys/pal/mod.rs delete mode 120000 library/std/src/sys/pal/unsupported/common.rs delete mode 120000 library/std/src/sys/pal/unsupported/mod.rs delete mode 120000 library/std/src/sys/pal/unsupported/os.rs delete mode 120000 library/std/src/sys/path/mod.rs delete mode 120000 library/std/src/sys/path/unix.rs delete mode 120000 library/std/src/sys/personality/dwarf/eh.rs delete mode 120000 library/std/src/sys/personality/dwarf/mod.rs delete mode 120000 library/std/src/sys/personality/dwarf/tests.rs delete mode 120000 library/std/src/sys/personality/mod.rs delete mode 120000 library/std/src/sys/pipe/mod.rs delete mode 120000 library/std/src/sys/pipe/unsupported.rs delete mode 120000 library/std/src/sys/platform_version/mod.rs delete mode 120000 library/std/src/sys/process/env.rs delete mode 120000 library/std/src/sys/process/mod.rs delete mode 120000 library/std/src/sys/process/unsupported.rs delete mode 100644 library/std/src/sys/random/mod.rs delete mode 120000 library/std/src/sys/random/unsupported.rs delete mode 120000 library/std/src/sys/stdio/mod.rs delete mode 120000 library/std/src/sys/stdio/unsupported.rs delete mode 120000 library/std/src/sys/sync/condvar/mod.rs delete mode 120000 library/std/src/sys/sync/condvar/no_threads.rs delete mode 120000 library/std/src/sys/sync/mod.rs delete mode 120000 library/std/src/sys/sync/mutex/mod.rs delete mode 120000 library/std/src/sys/sync/mutex/no_threads.rs delete mode 120000 library/std/src/sys/sync/once/mod.rs delete mode 120000 library/std/src/sys/sync/once/no_threads.rs delete mode 120000 library/std/src/sys/sync/once_box.rs delete mode 120000 library/std/src/sys/sync/rwlock/mod.rs delete mode 120000 library/std/src/sys/sync/rwlock/no_threads.rs delete mode 120000 library/std/src/sys/sync/thread_parking/mod.rs delete mode 120000 library/std/src/sys/sync/thread_parking/unsupported.rs delete mode 120000 library/std/src/sys/thread/mod.rs delete mode 120000 library/std/src/sys/thread/unsupported.rs delete mode 100644 library/std/src/sys/thread_local/mod.rs delete mode 120000 library/std/src/sys/thread_local/no_threads.rs delete mode 120000 library/std/src/sys/thread_local/os.rs delete mode 120000 library/std/src/sys/time/mod.rs delete mode 120000 library/std/src/sys/time/unsupported.rs delete mode 120000 library/std/src/thread delete mode 120000 library/std/src/time.rs diff --git a/library/std/src/backtrace b/library/std/src/backtrace deleted file mode 120000 index 5f2b4b9..0000000 --- a/library/std/src/backtrace +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/backtrace \ No newline at end of file diff --git a/library/std/src/backtrace.rs b/library/std/src/backtrace.rs deleted file mode 120000 index feaae68..0000000 --- a/library/std/src/backtrace.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/backtrace.rs \ No newline at end of file diff --git a/library/std/src/env.rs b/library/std/src/env.rs deleted file mode 120000 index d1f76a2..0000000 --- a/library/std/src/env.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/env.rs \ No newline at end of file diff --git a/library/std/src/error.rs b/library/std/src/error.rs deleted file mode 120000 index b4b0f08..0000000 --- a/library/std/src/error.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/error.rs \ No newline at end of file diff --git a/library/std/src/fs b/library/std/src/fs deleted file mode 120000 index 85172c0..0000000 --- a/library/std/src/fs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/fs \ No newline at end of file diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs deleted file mode 120000 index 2702e27..0000000 --- a/library/std/src/fs.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/fs.rs \ No newline at end of file diff --git a/library/std/src/hash b/library/std/src/hash deleted file mode 120000 index 58875b8..0000000 --- a/library/std/src/hash +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/hash \ No newline at end of file diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs deleted file mode 120000 index 4e741bd..0000000 --- a/library/std/src/keyword_docs.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/keyword_docs.rs \ No newline at end of file diff --git a/library/std/src/macros.rs b/library/std/src/macros.rs deleted file mode 120000 index ac271d1..0000000 --- a/library/std/src/macros.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/macros.rs \ No newline at end of file diff --git a/library/std/src/num b/library/std/src/num deleted file mode 120000 index dc799d6..0000000 --- a/library/std/src/num +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/num \ No newline at end of file diff --git a/library/std/src/os/mod.rs b/library/std/src/os/mod.rs deleted file mode 120000 index 0e98e62..0000000 --- a/library/std/src/os/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/mod.rs \ No newline at end of file diff --git a/library/std/src/os/raw/mod.rs b/library/std/src/os/raw/mod.rs deleted file mode 120000 index d608988..0000000 --- a/library/std/src/os/raw/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/raw/mod.rs \ No newline at end of file diff --git a/library/std/src/os/raw/tests.rs b/library/std/src/os/raw/tests.rs deleted file mode 120000 index 732670d..0000000 --- a/library/std/src/os/raw/tests.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/os/raw/tests.rs \ No newline at end of file diff --git a/library/std/src/prelude b/library/std/src/prelude deleted file mode 120000 index 054dced..0000000 --- a/library/std/src/prelude +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude \ No newline at end of file diff --git a/library/std/src/process.rs b/library/std/src/process.rs deleted file mode 120000 index 565177b..0000000 --- a/library/std/src/process.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/process.rs \ No newline at end of file diff --git a/library/std/src/random.rs b/library/std/src/random.rs deleted file mode 120000 index 587ed19..0000000 --- a/library/std/src/random.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/random.rs \ No newline at end of file diff --git a/library/std/src/rt.rs b/library/std/src/rt.rs deleted file mode 120000 index 9952d3c..0000000 --- a/library/std/src/rt.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs \ No newline at end of file diff --git a/library/std/src/sys/args/mod.rs b/library/std/src/sys/args/mod.rs deleted file mode 100644 index 5424d40..0000000 --- a/library/std/src/sys/args/mod.rs +++ /dev/null @@ -1,60 +0,0 @@ -//! Platform-dependent command line arguments abstraction. - -#![forbid(unsafe_op_in_unsafe_fn)] - -#[cfg(any( - all(target_family = "unix", not(any(target_os = "espidf", target_os = "vita"))), - target_family = "windows", - target_os = "hermit", - target_os = "motor", - target_os = "uefi", - target_os = "wasi", - target_os = "xous", -))] -mod common; - -cfg_select! { - any( - all(target_family = "unix", not(any(target_os = "espidf", target_os = "vita"))), - target_os = "hermit", - ) => { - mod unix; - pub use unix::*; - } - target_family = "windows" => { - mod windows; - pub use windows::*; - } - all(target_vendor = "fortanix", target_env = "sgx") => { - mod sgx; - pub use sgx::*; - } - target_os = "motor" => { - mod motor; - pub use motor::*; - } - target_os = "uefi" => { - mod uefi; - pub use uefi::*; - } - all(target_os = "wasi", target_env = "p1") => { - mod wasip1; - pub use wasip1::*; - } - all(target_os = "wasi", any(target_env = "p2", target_env = "p3")) => { - mod wasip2; - pub use wasip2::*; - } - target_os = "xous" => { - mod xous; - pub use xous::*; - } - target_os = "zkvm" => { - mod zkvm; - pub use zkvm::*; - } - _ => { - mod unsupported; - pub use unsupported::*; - } -} diff --git a/library/std/src/sys/args/unsupported.rs b/library/std/src/sys/args/unsupported.rs deleted file mode 120000 index 3684428..0000000 --- a/library/std/src/sys/args/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/args/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/backtrace.rs b/library/std/src/sys/backtrace.rs deleted file mode 120000 index fadb383..0000000 --- a/library/std/src/sys/backtrace.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/backtrace.rs \ No newline at end of file diff --git a/library/std/src/sys/cmath.rs b/library/std/src/sys/cmath.rs deleted file mode 120000 index 3236110..0000000 --- a/library/std/src/sys/cmath.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/cmath.rs \ No newline at end of file diff --git a/library/std/src/sys/configure_builtins.rs b/library/std/src/sys/configure_builtins.rs deleted file mode 120000 index 81694b4..0000000 --- a/library/std/src/sys/configure_builtins.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/configure_builtins.rs \ No newline at end of file diff --git a/library/std/src/sys/env/common.rs b/library/std/src/sys/env/common.rs deleted file mode 120000 index 6371ec4..0000000 --- a/library/std/src/sys/env/common.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/env/common.rs \ No newline at end of file diff --git a/library/std/src/sys/env/mod.rs b/library/std/src/sys/env/mod.rs deleted file mode 120000 index 485c964..0000000 --- a/library/std/src/sys/env/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/env/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/env/unsupported.rs b/library/std/src/sys/env/unsupported.rs deleted file mode 120000 index fd89779..0000000 --- a/library/std/src/sys/env/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/env/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/env_consts.rs b/library/std/src/sys/env_consts.rs deleted file mode 120000 index 621fc16..0000000 --- a/library/std/src/sys/env_consts.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/env_consts.rs \ No newline at end of file diff --git a/library/std/src/sys/exit.rs b/library/std/src/sys/exit.rs deleted file mode 120000 index e57833e..0000000 --- a/library/std/src/sys/exit.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/exit.rs \ No newline at end of file diff --git a/library/std/src/sys/fd/mod.rs b/library/std/src/sys/fd/mod.rs deleted file mode 120000 index 694a403..0000000 --- a/library/std/src/sys/fd/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/fd/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/fs/common.rs b/library/std/src/sys/fs/common.rs deleted file mode 120000 index 221beb3..0000000 --- a/library/std/src/sys/fs/common.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/fs/common.rs \ No newline at end of file diff --git a/library/std/src/sys/fs/mod.rs b/library/std/src/sys/fs/mod.rs deleted file mode 120000 index dc8d563..0000000 --- a/library/std/src/sys/fs/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/fs/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/fs/unsupported.rs b/library/std/src/sys/fs/unsupported.rs deleted file mode 120000 index 286d0cf..0000000 --- a/library/std/src/sys/fs/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/fs/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/helpers/mod.rs b/library/std/src/sys/helpers/mod.rs deleted file mode 120000 index c943a6b..0000000 --- a/library/std/src/sys/helpers/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/helpers/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/helpers/small_c_string.rs b/library/std/src/sys/helpers/small_c_string.rs deleted file mode 120000 index 4d23b5d..0000000 --- a/library/std/src/sys/helpers/small_c_string.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/helpers/small_c_string.rs \ No newline at end of file diff --git a/library/std/src/sys/helpers/tests.rs b/library/std/src/sys/helpers/tests.rs deleted file mode 120000 index 13197a4..0000000 --- a/library/std/src/sys/helpers/tests.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/helpers/tests.rs \ No newline at end of file diff --git a/library/std/src/sys/helpers/wstr.rs b/library/std/src/sys/helpers/wstr.rs deleted file mode 120000 index 23b1ee1..0000000 --- a/library/std/src/sys/helpers/wstr.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/helpers/wstr.rs \ No newline at end of file diff --git a/library/std/src/sys/io/error/generic.rs b/library/std/src/sys/io/error/generic.rs deleted file mode 120000 index 5b942e8..0000000 --- a/library/std/src/sys/io/error/generic.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/io/error/generic.rs \ No newline at end of file diff --git a/library/std/src/sys/io/error/mod.rs b/library/std/src/sys/io/error/mod.rs deleted file mode 100644 index cb69af5..0000000 --- a/library/std/src/sys/io/error/mod.rs +++ /dev/null @@ -1,56 +0,0 @@ -cfg_select! { - target_os = "hermit" => { - mod hermit; - pub use hermit::*; - } - target_os = "motor" => { - mod motor; - pub use motor::*; - } - all(target_vendor = "fortanix", target_env = "sgx") => { - mod sgx; - pub use sgx::*; - } - target_os = "solid_asp3" => { - mod solid; - pub use solid::*; - } - target_os = "teeos" => { - mod teeos; - pub use teeos::*; - } - target_os = "uefi" => { - mod uefi; - pub use uefi::*; - } - target_family = "unix" => { - mod unix; - pub use unix::*; - } - target_os = "wasi" => { - mod wasi; - pub use wasi::*; - } - target_os = "windows" => { - mod windows; - pub use windows::*; - } - target_os = "xous" => { - mod xous; - pub use xous::*; - } - any( - target_os = "vexos", - target_family = "wasm", - target_os = "zkvm", - target_os = "survos", - ) => { - mod generic; - pub use generic::*; - } -} - -pub type RawOsError = cfg_select! { - target_os = "uefi" => usize, - _ => i32, -}; diff --git a/library/std/src/sys/io/io_slice/unsupported.rs b/library/std/src/sys/io/io_slice/unsupported.rs deleted file mode 120000 index f0fb428..0000000 --- a/library/std/src/sys/io/io_slice/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/io/io_slice/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/io/is_terminal/unsupported.rs b/library/std/src/sys/io/is_terminal/unsupported.rs deleted file mode 120000 index 59fb3a9..0000000 --- a/library/std/src/sys/io/is_terminal/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/io/is_terminal/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/io/kernel_copy/mod.rs b/library/std/src/sys/io/kernel_copy/mod.rs deleted file mode 120000 index c3ba74b..0000000 --- a/library/std/src/sys/io/kernel_copy/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/io/kernel_copy/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/io/mod.rs b/library/std/src/sys/io/mod.rs deleted file mode 120000 index a2e46a1..0000000 --- a/library/std/src/sys/io/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/io/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/mod.rs b/library/std/src/sys/mod.rs deleted file mode 120000 index 62d64a5..0000000 --- a/library/std/src/sys/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/net/connection/mod.rs b/library/std/src/sys/net/connection/mod.rs deleted file mode 120000 index d824a29..0000000 --- a/library/std/src/sys/net/connection/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/connection/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/net/connection/unsupported.rs b/library/std/src/sys/net/connection/unsupported.rs deleted file mode 120000 index 36a6b07..0000000 --- a/library/std/src/sys/net/connection/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/connection/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/net/hostname/mod.rs b/library/std/src/sys/net/hostname/mod.rs deleted file mode 120000 index 7a6ab54..0000000 --- a/library/std/src/sys/net/hostname/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/hostname/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/net/hostname/unsupported.rs b/library/std/src/sys/net/hostname/unsupported.rs deleted file mode 120000 index 5521501..0000000 --- a/library/std/src/sys/net/hostname/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/hostname/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/net/mod.rs b/library/std/src/sys/net/mod.rs deleted file mode 120000 index e19fa6a..0000000 --- a/library/std/src/sys/net/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/os_str/bytes.rs b/library/std/src/sys/os_str/bytes.rs deleted file mode 120000 index a50532b..0000000 --- a/library/std/src/sys/os_str/bytes.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/os_str/bytes.rs \ No newline at end of file diff --git a/library/std/src/sys/os_str/bytes/tests.rs b/library/std/src/sys/os_str/bytes/tests.rs deleted file mode 120000 index a1f8ad2..0000000 --- a/library/std/src/sys/os_str/bytes/tests.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/os_str/bytes/tests.rs \ No newline at end of file diff --git a/library/std/src/sys/os_str/mod.rs b/library/std/src/sys/os_str/mod.rs deleted file mode 120000 index f5b88e8..0000000 --- a/library/std/src/sys/os_str/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/os_str/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/pal/mod.rs b/library/std/src/sys/pal/mod.rs deleted file mode 100644 index dadd85b..0000000 --- a/library/std/src/sys/pal/mod.rs +++ /dev/null @@ -1,73 +0,0 @@ -//! The PAL (platform abstraction layer) contains platform-specific abstractions -//! for implementing the features in the other submodules, such as e.g. bindings. - -#![allow(missing_debug_implementations)] - -cfg_select! { - unix => { - mod unix; - pub use self::unix::*; - } - windows => { - mod windows; - pub use self::windows::*; - } - target_os = "solid_asp3" => { - mod solid; - pub use self::solid::*; - } - target_os = "hermit" => { - mod hermit; - pub use self::hermit::*; - } - target_os = "motor" => { - mod motor; - pub use self::motor::*; - } - target_os = "trusty" => { - mod trusty; - pub use self::trusty::*; - } - target_os = "vexos" => { - mod vexos; - pub use self::vexos::*; - } - target_os = "wasi" => { - mod wasi; - pub use self::wasi::*; - } - target_family = "wasm" => { - mod wasm; - pub use self::wasm::*; - } - target_os = "xous" => { - mod xous; - pub use self::xous::*; - } - target_os = "uefi" => { - mod uefi; - pub use self::uefi::*; - } - all(target_vendor = "fortanix", target_env = "sgx") => { - mod sgx; - pub use self::sgx::*; - } - target_os = "teeos" => { - mod teeos; - pub use self::teeos::*; - } - target_os = "zkvm" => { - mod zkvm; - pub use self::zkvm::*; - } - target_os = "survos" => { - mod unsupported; - pub use self::unsupported::*; - mod survos; - pub use self::survos::*; - } - _ => { - mod unsupported; - pub use self::unsupported::*; - } -} diff --git a/library/std/src/sys/pal/unsupported/common.rs b/library/std/src/sys/pal/unsupported/common.rs deleted file mode 120000 index e212bd7..0000000 --- a/library/std/src/sys/pal/unsupported/common.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unsupported/common.rs \ No newline at end of file diff --git a/library/std/src/sys/pal/unsupported/mod.rs b/library/std/src/sys/pal/unsupported/mod.rs deleted file mode 120000 index 0fc4f50..0000000 --- a/library/std/src/sys/pal/unsupported/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unsupported/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/pal/unsupported/os.rs b/library/std/src/sys/pal/unsupported/os.rs deleted file mode 120000 index c4bf68d..0000000 --- a/library/std/src/sys/pal/unsupported/os.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unsupported/os.rs \ No newline at end of file diff --git a/library/std/src/sys/path/mod.rs b/library/std/src/sys/path/mod.rs deleted file mode 120000 index af2c74c..0000000 --- a/library/std/src/sys/path/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/path/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/path/unix.rs b/library/std/src/sys/path/unix.rs deleted file mode 120000 index 9351336..0000000 --- a/library/std/src/sys/path/unix.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/path/unix.rs \ No newline at end of file diff --git a/library/std/src/sys/personality/dwarf/eh.rs b/library/std/src/sys/personality/dwarf/eh.rs deleted file mode 120000 index 4af175e..0000000 --- a/library/std/src/sys/personality/dwarf/eh.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/personality/dwarf/eh.rs \ No newline at end of file diff --git a/library/std/src/sys/personality/dwarf/mod.rs b/library/std/src/sys/personality/dwarf/mod.rs deleted file mode 120000 index 1e96f35..0000000 --- a/library/std/src/sys/personality/dwarf/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/personality/dwarf/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/personality/dwarf/tests.rs b/library/std/src/sys/personality/dwarf/tests.rs deleted file mode 120000 index 97b8782..0000000 --- a/library/std/src/sys/personality/dwarf/tests.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/personality/dwarf/tests.rs \ No newline at end of file diff --git a/library/std/src/sys/personality/mod.rs b/library/std/src/sys/personality/mod.rs deleted file mode 120000 index 0c1ddf5..0000000 --- a/library/std/src/sys/personality/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/personality/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/pipe/mod.rs b/library/std/src/sys/pipe/mod.rs deleted file mode 120000 index 53fc48e..0000000 --- a/library/std/src/sys/pipe/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pipe/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/pipe/unsupported.rs b/library/std/src/sys/pipe/unsupported.rs deleted file mode 120000 index 9f65be7..0000000 --- a/library/std/src/sys/pipe/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pipe/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/platform_version/mod.rs b/library/std/src/sys/platform_version/mod.rs deleted file mode 120000 index 6dc9f08..0000000 --- a/library/std/src/sys/platform_version/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/platform_version/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/process/env.rs b/library/std/src/sys/process/env.rs deleted file mode 120000 index aa4324c..0000000 --- a/library/std/src/sys/process/env.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/process/env.rs \ No newline at end of file diff --git a/library/std/src/sys/process/mod.rs b/library/std/src/sys/process/mod.rs deleted file mode 120000 index 390139c..0000000 --- a/library/std/src/sys/process/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/process/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/process/unsupported.rs b/library/std/src/sys/process/unsupported.rs deleted file mode 120000 index 7fa792f..0000000 --- a/library/std/src/sys/process/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/process/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/random/mod.rs b/library/std/src/sys/random/mod.rs deleted file mode 100644 index 3a82a42..0000000 --- a/library/std/src/sys/random/mod.rs +++ /dev/null @@ -1,134 +0,0 @@ -cfg_select! { - // Tier 1 - any(target_os = "linux", target_os = "android") => { - mod linux; - pub use linux::{fill_bytes, hashmap_random_keys}; - } - target_os = "windows" => { - mod windows; - pub use windows::fill_bytes; - } - target_vendor = "apple" => { - mod apple; - pub use apple::fill_bytes; - // Others, in alphabetical ordering. - } - any( - target_os = "dragonfly", - target_os = "freebsd", - target_os = "haiku", - target_os = "illumos", - target_os = "netbsd", - target_os = "openbsd", - target_os = "rtems", - target_os = "solaris", - target_os = "vita", - target_os = "nuttx", - ) => { - mod arc4random; - pub use arc4random::fill_bytes; - } - target_os = "emscripten" => { - mod getentropy; - pub use getentropy::fill_bytes; - } - target_os = "espidf" => { - mod espidf; - pub use espidf::fill_bytes; - } - target_os = "fuchsia" => { - mod fuchsia; - pub use fuchsia::fill_bytes; - } - target_os = "hermit" => { - mod hermit; - pub use hermit::fill_bytes; - } - any(target_os = "horizon", target_os = "cygwin") => { - // FIXME(horizon): add arc4random_buf to shim-3ds - mod getrandom; - pub use getrandom::fill_bytes; - } - any( - target_os = "aix", - target_os = "hurd", - target_os = "l4re", - target_os = "nto", - ) => { - mod unix_legacy; - pub use unix_legacy::fill_bytes; - } - target_os = "redox" => { - mod redox; - pub use redox::fill_bytes; - } - target_os = "motor" => { - mod motor; - pub use motor::fill_bytes; - } - all(target_vendor = "fortanix", target_env = "sgx") => { - mod sgx; - pub use sgx::fill_bytes; - } - target_os = "solid_asp3" => { - mod solid; - pub use solid::fill_bytes; - } - target_os = "teeos" => { - mod teeos; - pub use teeos::fill_bytes; - } - target_os = "trusty" => { - mod trusty; - pub use trusty::fill_bytes; - } - target_os = "uefi" => { - mod uefi; - pub use uefi::fill_bytes; - } - target_os = "vxworks" => { - mod vxworks; - pub use vxworks::fill_bytes; - } - all(target_os = "wasi", target_env = "p1") => { - mod wasip1; - pub use wasip1::fill_bytes; - } - all(target_os = "wasi", any(target_env = "p2", target_env = "p3")) => { - mod wasip2; - pub use wasip2::{fill_bytes, hashmap_random_keys}; - } - target_os = "zkvm" => { - mod zkvm; - pub use zkvm::fill_bytes; - } - any( - all(target_family = "wasm", target_os = "unknown"), - target_os = "xous", - target_os = "vexos", -target_os = "survos", - ) => { - // FIXME: finally remove std support for wasm32-unknown-unknown - // FIXME: add random data generation to xous - mod unsupported; - pub use unsupported::{fill_bytes, hashmap_random_keys}; - } - _ => {} -} - -#[cfg(not(any( - target_os = "linux", - target_os = "android", - all(target_family = "wasm", target_os = "unknown"), - all(target_os = "wasi", not(target_env = "p1")), - target_os = "xous", - target_os = "vexos", -target_os = "survos", -)))] -pub fn hashmap_random_keys() -> (u64, u64) { - let mut buf = [0; 16]; - fill_bytes(&mut buf); - let k1 = u64::from_ne_bytes(buf[..8].try_into().unwrap()); - let k2 = u64::from_ne_bytes(buf[8..].try_into().unwrap()); - (k1, k2) -} diff --git a/library/std/src/sys/random/unsupported.rs b/library/std/src/sys/random/unsupported.rs deleted file mode 120000 index fca6e64..0000000 --- a/library/std/src/sys/random/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/random/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/stdio/mod.rs b/library/std/src/sys/stdio/mod.rs deleted file mode 120000 index d8aeca4..0000000 --- a/library/std/src/sys/stdio/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/stdio/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/stdio/unsupported.rs b/library/std/src/sys/stdio/unsupported.rs deleted file mode 120000 index c56d5ba..0000000 --- a/library/std/src/sys/stdio/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/stdio/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/condvar/mod.rs b/library/std/src/sys/sync/condvar/mod.rs deleted file mode 120000 index eb01345..0000000 --- a/library/std/src/sys/sync/condvar/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/condvar/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/condvar/no_threads.rs b/library/std/src/sys/sync/condvar/no_threads.rs deleted file mode 120000 index f31e2fd..0000000 --- a/library/std/src/sys/sync/condvar/no_threads.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/condvar/no_threads.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/mod.rs b/library/std/src/sys/sync/mod.rs deleted file mode 120000 index b1a684c..0000000 --- a/library/std/src/sys/sync/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/mutex/mod.rs b/library/std/src/sys/sync/mutex/mod.rs deleted file mode 120000 index 87606bf..0000000 --- a/library/std/src/sys/sync/mutex/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/mutex/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/mutex/no_threads.rs b/library/std/src/sys/sync/mutex/no_threads.rs deleted file mode 120000 index 18b7958..0000000 --- a/library/std/src/sys/sync/mutex/no_threads.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/mutex/no_threads.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/once/mod.rs b/library/std/src/sys/sync/once/mod.rs deleted file mode 120000 index c142705..0000000 --- a/library/std/src/sys/sync/once/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/once/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/once/no_threads.rs b/library/std/src/sys/sync/once/no_threads.rs deleted file mode 120000 index d289b30..0000000 --- a/library/std/src/sys/sync/once/no_threads.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/once/no_threads.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/once_box.rs b/library/std/src/sys/sync/once_box.rs deleted file mode 120000 index 60e4913..0000000 --- a/library/std/src/sys/sync/once_box.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/once_box.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/rwlock/mod.rs b/library/std/src/sys/sync/rwlock/mod.rs deleted file mode 120000 index 2621b38..0000000 --- a/library/std/src/sys/sync/rwlock/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/rwlock/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/rwlock/no_threads.rs b/library/std/src/sys/sync/rwlock/no_threads.rs deleted file mode 120000 index 6feab01..0000000 --- a/library/std/src/sys/sync/rwlock/no_threads.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/rwlock/no_threads.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/thread_parking/mod.rs b/library/std/src/sys/sync/thread_parking/mod.rs deleted file mode 120000 index 535e453..0000000 --- a/library/std/src/sys/sync/thread_parking/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/thread_parking/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/sync/thread_parking/unsupported.rs b/library/std/src/sys/sync/thread_parking/unsupported.rs deleted file mode 120000 index eb0b25a..0000000 --- a/library/std/src/sys/sync/thread_parking/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/sync/thread_parking/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/thread/mod.rs b/library/std/src/sys/thread/mod.rs deleted file mode 120000 index 6a9e354..0000000 --- a/library/std/src/sys/thread/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/thread/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/thread/unsupported.rs b/library/std/src/sys/thread/unsupported.rs deleted file mode 120000 index 27cedcb..0000000 --- a/library/std/src/sys/thread/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/thread/unsupported.rs \ No newline at end of file diff --git a/library/std/src/sys/thread_local/mod.rs b/library/std/src/sys/thread_local/mod.rs deleted file mode 100644 index a9f1d84..0000000 --- a/library/std/src/sys/thread_local/mod.rs +++ /dev/null @@ -1,227 +0,0 @@ -//! Implementation of the `thread_local` macro. -//! -//! There are three different thread-local implementations: -//! * Some targets lack threading support, and hence have only one thread, so -//! the TLS data is stored in a normal `static`. -//! * Some targets support TLS natively via the dynamic linker and C runtime. -//! * On some targets, the OS provides a library-based TLS implementation. The -//! TLS data is heap-allocated and referenced using a TLS key. -//! -//! Each implementation provides a macro which generates the `LocalKey` `const` -//! used to reference the TLS variable, along with the necessary helper structs -//! to track the initialization/destruction state of the variable. -//! -//! Additionally, this module contains abstractions for the OS interfaces used -//! for these implementations. - -#![cfg_attr(test, allow(unused))] -#![doc(hidden)] -#![forbid(unsafe_op_in_unsafe_fn)] -#![unstable( - feature = "thread_local_internals", - reason = "internal details of the thread_local macro", - issue = "none" -)] - -cfg_select! { - any( - all(target_family = "wasm", not(target_feature = "atomics")), - target_os = "uefi", - target_os = "zkvm", - target_os = "trusty", - target_os = "vexos", - target_os = "survos", - ) => { - mod no_threads; - pub use no_threads::{EagerStorage, LazyStorage, thread_local_inner}; - pub(crate) use no_threads::{LocalPointer, local_pointer}; - } - target_thread_local => { - mod native; - pub use native::{EagerStorage, LazyStorage, thread_local_inner}; - pub(crate) use native::{LocalPointer, local_pointer}; - } - _ => { - mod os; - pub use os::{Storage, thread_local_inner, value_align}; - pub(crate) use os::{LocalPointer, local_pointer}; - } -} - -/// The native TLS implementation needs a way to register destructors for its data. -/// This module contains platform-specific implementations of that register. -/// -/// It turns out however that most platforms don't have a way to register a -/// destructor for each variable. On these platforms, we keep track of the -/// destructors ourselves and register (through the [`guard`] module) only a -/// single callback that runs all of the destructors in the list. -#[cfg(all(target_thread_local, not(all(target_family = "wasm", not(target_feature = "atomics")))))] -pub(crate) mod destructors { - cfg_select! { - any( - target_os = "linux", - target_os = "android", - target_os = "fuchsia", - target_os = "redox", - target_os = "hurd", - target_os = "netbsd", - target_os = "dragonfly" - ) => { - mod linux_like; - mod list; - pub(super) use linux_like::register; - pub(super) use list::run; - } - _ => { - mod list; - pub(super) use list::register; - pub(crate) use list::run; - } - } -} - -/// This module provides a way to schedule the execution of the destructor list -/// and the [runtime cleanup](crate::rt::thread_cleanup) function. Calling `enable` -/// should ensure that these functions are called at the right times. -pub(crate) mod guard { - cfg_select! { - all(target_thread_local, target_vendor = "apple") => { - mod apple; - pub(crate) use apple::enable; - } - target_os = "windows" => { - mod windows; - pub(crate) use windows::enable; - } - any( - all(target_family = "wasm", not( - all(target_os = "wasi", target_env = "p1", target_feature = "atomics") - )), - target_os = "uefi", - target_os = "zkvm", - target_os = "trusty", - target_os = "vexos", - ) => { - pub(crate) fn enable() { - // FIXME: Right now there is no concept of "thread exit" on - // wasm, but this is likely going to show up at some point in - // the form of an exported symbol that the wasm runtime is going - // to be expected to call. For now we just leak everything, but - // if such a function starts to exist it will probably need to - // iterate the destructor list with these functions: - #[cfg(all(target_family = "wasm", target_feature = "atomics"))] - #[allow(unused)] - use super::destructors::run; - #[allow(unused)] - use crate::rt::thread_cleanup; - } - } - any( - target_os = "hermit", - target_os = "xous", - ) => { - // `std` is the only runtime, so it just calls the destructor functions - // itself when the time comes. - pub(crate) fn enable() {} - } - target_os = "solid_asp3" => { - mod solid; - pub(crate) use solid::enable; - } - target_os = "survos" => { - // todo - pub(crate) fn enable() {} - } - _ => { - mod key; - pub(crate) use key::enable; - } - } -} - -/// `const`-creatable TLS keys. -/// -/// Most OSs without native TLS will provide a library-based way to create TLS -/// storage. For each TLS variable, we create a key, which can then be used to -/// reference an entry in a thread-local table. This then associates each key -/// with a pointer which we can get and set to store our data. -pub(crate) mod key { - cfg_select! { - any( - all( - not(target_vendor = "apple"), - not(target_family = "wasm"), - target_family = "unix", - ), - all(not(target_thread_local), target_vendor = "apple"), - target_os = "teeos", - all(target_os = "wasi", target_env = "p1", target_feature = "atomics"), - ) => { - mod racy; - mod unix; - #[cfg(test)] - mod tests; - pub(super) use racy::LazyKey; - pub(super) use unix::{Key, set}; - #[cfg(any(not(target_thread_local), test))] - pub(super) use unix::get; - use unix::{create, destroy}; - } - all(not(target_thread_local), target_os = "windows") => { - #[cfg(test)] - mod tests; - mod windows; - pub(super) use windows::{Key, LazyKey, get, run_dtors, set}; - } - all(target_vendor = "fortanix", target_env = "sgx") => { - mod racy; - mod sgx; - #[cfg(test)] - mod tests; - pub(super) use racy::LazyKey; - pub(super) use sgx::{Key, get, set}; - use sgx::{create, destroy}; - } - target_os = "xous" => { - mod racy; - #[cfg(test)] - mod tests; - mod xous; - pub(super) use racy::LazyKey; - pub(crate) use xous::destroy_tls; - pub(super) use xous::{Key, get, set}; - use xous::{create, destroy}; - } - target_os = "motor" => { - mod racy; - #[cfg(test)] - mod tests; - pub(super) use racy::LazyKey; - pub(super) use moto_rt::tls::{Key, get, set}; - use moto_rt::tls::{create, destroy}; - } - _ => {} - } -} - -/// Run a callback in a scenario which must not unwind (such as a `extern "C" -/// fn` declared in a user crate). If the callback unwinds anyway, then -/// `rtabort` with a message about thread local panicking on drop. -#[inline] -#[allow(dead_code)] -fn abort_on_dtor_unwind(f: impl FnOnce()) { - // Using a guard like this is lower cost. - let guard = DtorUnwindGuard; - f(); - core::mem::forget(guard); - - struct DtorUnwindGuard; - impl Drop for DtorUnwindGuard { - #[inline] - fn drop(&mut self) { - // This is not terribly descriptive, but it doesn't need to be as we'll - // already have printed a panic message at this point. - rtabort!("thread local panicked on drop"); - } - } -} diff --git a/library/std/src/sys/thread_local/no_threads.rs b/library/std/src/sys/thread_local/no_threads.rs deleted file mode 120000 index 21e52fc..0000000 --- a/library/std/src/sys/thread_local/no_threads.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/thread_local/no_threads.rs \ No newline at end of file diff --git a/library/std/src/sys/thread_local/os.rs b/library/std/src/sys/thread_local/os.rs deleted file mode 120000 index d4f5fc4..0000000 --- a/library/std/src/sys/thread_local/os.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/thread_local/os.rs \ No newline at end of file diff --git a/library/std/src/sys/time/mod.rs b/library/std/src/sys/time/mod.rs deleted file mode 120000 index 1a43613..0000000 --- a/library/std/src/sys/time/mod.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/time/mod.rs \ No newline at end of file diff --git a/library/std/src/sys/time/unsupported.rs b/library/std/src/sys/time/unsupported.rs deleted file mode 120000 index 4a54ab1..0000000 --- a/library/std/src/sys/time/unsupported.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/time/unsupported.rs \ No newline at end of file diff --git a/library/std/src/thread b/library/std/src/thread deleted file mode 120000 index c7331ad..0000000 --- a/library/std/src/thread +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/thread \ No newline at end of file diff --git a/library/std/src/time.rs b/library/std/src/time.rs deleted file mode 120000 index 391a9ba..0000000 --- a/library/std/src/time.rs +++ /dev/null @@ -1 +0,0 @@ -/home/julien/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/time.rs \ No newline at end of file