diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-03-07 16:10:29 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-04-25 13:40:36 +0200 |
| commit | fd4c81f4c19e3b1eb0710e50e04fb1f980b7e7ab (patch) | |
| tree | 4f98d6541a9dceacde34a89f156bb588eb60c581 /library/sysroot | |
| parent | 999e6e5afb71d0fa6b5f67440278129aca12c67d (diff) | |
| download | rust-fd4c81f4c19e3b1eb0710e50e04fb1f980b7e7ab.tar.gz rust-fd4c81f4c19e3b1eb0710e50e04fb1f980b7e7ab.zip | |
Add a `sysroot` crate to represent the standard library crates
Diffstat (limited to 'library/sysroot')
| -rw-r--r-- | library/sysroot/Cargo.toml | 27 | ||||
| -rw-r--r-- | library/sysroot/src/lib.rs | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/library/sysroot/Cargo.toml b/library/sysroot/Cargo.toml new file mode 100644 index 00000000000..5356ee277cc --- /dev/null +++ b/library/sysroot/Cargo.toml @@ -0,0 +1,27 @@ +[package] +name = "sysroot" +version = "0.0.0" +edition = "2021" + +# this is a dummy crate to ensure that all required crates appear in the sysroot +[dependencies] +proc_macro = { path = "../proc_macro" } +std = { path = "../std" } +test = { path = "../test" } + +# Forward features to the `std` crate as necessary +[features] +default = ["std_detect_file_io", "std_detect_dlsym_getauxval", "panic-unwind"] +backtrace = ["std/backtrace"] +compiler-builtins-c = ["std/compiler-builtins-c"] +compiler-builtins-mem = ["std/compiler-builtins-mem"] +compiler-builtins-no-asm = ["std/compiler-builtins-no-asm"] +compiler-builtins-mangled-names = ["std/compiler-builtins-mangled-names"] +llvm-libunwind = ["std/llvm-libunwind"] +system-llvm-libunwind = ["std/system-llvm-libunwind"] +panic-unwind = ["std/panic_unwind"] +panic_immediate_abort = ["std/panic_immediate_abort"] +profiler = ["std/profiler"] +std_detect_file_io = ["std/std_detect_file_io"] +std_detect_dlsym_getauxval = ["std/std_detect_dlsym_getauxval"] +std_detect_env_override = ["std/std_detect_env_override"] diff --git a/library/sysroot/src/lib.rs b/library/sysroot/src/lib.rs new file mode 100644 index 00000000000..71ceb580a40 --- /dev/null +++ b/library/sysroot/src/lib.rs @@ -0,0 +1 @@ +// This is intentionally empty since this crate is only used to depend on other library crates. |
