]>
Commit | Line | Data |
---|---|---|
7453a54e SL |
1 | [package] |
2 | authors = ["The Rust Project Developers"] | |
3 | name = "std" | |
4 | version = "0.0.0" | |
5 | build = "build.rs" | |
48663c56 | 6 | license = "MIT OR Apache-2.0" |
abe05a73 XL |
7 | repository = "https://github.com/rust-lang/rust.git" |
8 | description = "The Rust Standard Library" | |
532ac7d7 | 9 | edition = "2018" |
7453a54e SL |
10 | |
11 | [lib] | |
12 | name = "std" | |
13 | path = "lib.rs" | |
14 | crate-type = ["dylib", "rlib"] | |
7453a54e SL |
15 | |
16 | [dependencies] | |
17 | alloc = { path = "../liballoc" } | |
dc9dc135 | 18 | cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] } |
476ff2be | 19 | panic_unwind = { path = "../libpanic_unwind", optional = true } |
a7813a04 | 20 | panic_abort = { path = "../libpanic_abort" } |
7453a54e | 21 | core = { path = "../libcore" } |
532ac7d7 | 22 | libc = { version = "0.2.51", default-features = false, features = ['rustc-dep-of-std'] } |
dc9dc135 | 23 | compiler_builtins = { version = "0.1.16" } |
041b39d2 | 24 | profiler_builtins = { path = "../libprofiler_builtins", optional = true } |
a7813a04 | 25 | unwind = { path = "../libunwind" } |
e74abb32 | 26 | hashbrown = { version = "0.6.2", default-features = false, features = ['rustc-dep-of-std'] } |
e1599b0c XL |
27 | |
28 | [dependencies.backtrace_rs] | |
29 | package = "backtrace" | |
30 | version = "0.3.37" | |
31 | default-features = false # without the libstd `backtrace` feature, stub out everything | |
32 | features = [ "rustc-dep-of-std" ] # enable build support for integrating into libstd | |
7453a54e | 33 | |
abe05a73 | 34 | [dev-dependencies] |
e1599b0c | 35 | rand = "0.7" |
abe05a73 | 36 | |
7cac9316 XL |
37 | [target.x86_64-apple-darwin.dependencies] |
38 | rustc_asan = { path = "../librustc_asan" } | |
39 | rustc_tsan = { path = "../librustc_tsan" } | |
40 | ||
8bb4bdeb XL |
41 | [target.x86_64-unknown-linux-gnu.dependencies] |
42 | rustc_asan = { path = "../librustc_asan" } | |
43 | rustc_lsan = { path = "../librustc_lsan" } | |
44 | rustc_msan = { path = "../librustc_msan" } | |
45 | rustc_tsan = { path = "../librustc_tsan" } | |
46 | ||
0731742a XL |
47 | [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies] |
48 | dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] } | |
49 | ||
50 | [target.x86_64-fortanix-unknown-sgx.dependencies] | |
51 | fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] } | |
a1dfa0c6 | 52 | |
e74abb32 XL |
53 | [target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'.dependencies] |
54 | hermit-abi = { version = "0.1", features = ['rustc-dep-of-std'] } | |
55 | ||
e1599b0c | 56 | [target.wasm32-wasi.dependencies] |
60c5eb7d | 57 | wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false } |
e1599b0c | 58 | |
7453a54e | 59 | [features] |
dc9dc135 | 60 | default = ["std_detect_file_io", "std_detect_dlsym_getauxval"] |
a1dfa0c6 | 61 | |
e1599b0c XL |
62 | backtrace = [ |
63 | "backtrace_rs/dbghelp", # backtrace/symbolize on MSVC | |
64 | "backtrace_rs/libbacktrace", # symbolize on most platforms | |
65 | "backtrace_rs/libunwind", # backtrace on most platforms | |
66 | "backtrace_rs/dladdr", # symbolize on platforms w/o libbacktrace | |
67 | ] | |
68 | ||
476ff2be | 69 | panic-unwind = ["panic_unwind"] |
041b39d2 | 70 | profiler = ["profiler_builtins"] |
dc9dc135 | 71 | compiler-builtins-c = ["alloc/compiler-builtins-c"] |
532ac7d7 | 72 | llvm-libunwind = ["unwind/llvm-libunwind"] |
a1dfa0c6 XL |
73 | |
74 | # Make panics and failed asserts immediately abort without formatting any message | |
75 | panic_immediate_abort = ["core/panic_immediate_abort"] | |
0bf4aa26 | 76 | |
416331ca XL |
77 | # Enable std_detect default features for stdarch/crates/std_detect: |
78 | # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml | |
9fa01778 XL |
79 | std_detect_file_io = [] |
80 | std_detect_dlsym_getauxval = [] | |
532ac7d7 XL |
81 | |
82 | [package.metadata.fortanix-sgx] | |
83 | # Maximum possible number of threads when testing | |
84 | threads = 125 | |
dc9dc135 XL |
85 | # Maximum heap size |
86 | heap_size = 0x8000000 |