]> git.proxmox.com Git - rustc.git/blame - src/libstd/Cargo.toml
New upstream version 1.41.1+dfsg1
[rustc.git] / src / libstd / Cargo.toml
CommitLineData
7453a54e
SL
1[package]
2authors = ["The Rust Project Developers"]
3name = "std"
4version = "0.0.0"
5build = "build.rs"
48663c56 6license = "MIT OR Apache-2.0"
abe05a73
XL
7repository = "https://github.com/rust-lang/rust.git"
8description = "The Rust Standard Library"
532ac7d7 9edition = "2018"
7453a54e
SL
10
11[lib]
12name = "std"
13path = "lib.rs"
14crate-type = ["dylib", "rlib"]
7453a54e
SL
15
16[dependencies]
17alloc = { path = "../liballoc" }
dc9dc135 18cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
476ff2be 19panic_unwind = { path = "../libpanic_unwind", optional = true }
a7813a04 20panic_abort = { path = "../libpanic_abort" }
7453a54e 21core = { path = "../libcore" }
532ac7d7 22libc = { version = "0.2.51", default-features = false, features = ['rustc-dep-of-std'] }
dc9dc135 23compiler_builtins = { version = "0.1.16" }
041b39d2 24profiler_builtins = { path = "../libprofiler_builtins", optional = true }
a7813a04 25unwind = { path = "../libunwind" }
e74abb32 26hashbrown = { version = "0.6.2", default-features = false, features = ['rustc-dep-of-std'] }
e1599b0c
XL
27
28[dependencies.backtrace_rs]
29package = "backtrace"
30version = "0.3.37"
31default-features = false # without the libstd `backtrace` feature, stub out everything
32features = [ "rustc-dep-of-std" ] # enable build support for integrating into libstd
7453a54e 33
abe05a73 34[dev-dependencies]
e1599b0c 35rand = "0.7"
abe05a73 36
7cac9316
XL
37[target.x86_64-apple-darwin.dependencies]
38rustc_asan = { path = "../librustc_asan" }
39rustc_tsan = { path = "../librustc_tsan" }
40
8bb4bdeb
XL
41[target.x86_64-unknown-linux-gnu.dependencies]
42rustc_asan = { path = "../librustc_asan" }
43rustc_lsan = { path = "../librustc_lsan" }
44rustc_msan = { path = "../librustc_msan" }
45rustc_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]
48dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
49
50[target.x86_64-fortanix-unknown-sgx.dependencies]
51fortanix-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]
54hermit-abi = { version = "0.1", features = ['rustc-dep-of-std'] }
55
e1599b0c 56[target.wasm32-wasi.dependencies]
60c5eb7d 57wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false }
e1599b0c 58
7453a54e 59[features]
dc9dc135 60default = ["std_detect_file_io", "std_detect_dlsym_getauxval"]
a1dfa0c6 61
e1599b0c
XL
62backtrace = [
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 69panic-unwind = ["panic_unwind"]
041b39d2 70profiler = ["profiler_builtins"]
dc9dc135 71compiler-builtins-c = ["alloc/compiler-builtins-c"]
532ac7d7 72llvm-libunwind = ["unwind/llvm-libunwind"]
a1dfa0c6
XL
73
74# Make panics and failed asserts immediately abort without formatting any message
75panic_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
79std_detect_file_io = []
80std_detect_dlsym_getauxval = []
532ac7d7
XL
81
82[package.metadata.fortanix-sgx]
83# Maximum possible number of threads when testing
84threads = 125
dc9dc135
XL
85# Maximum heap size
86heap_size = 0x8000000