]> git.lizzy.rs Git - rust.git/blob - src/libstd/Cargo.toml
Rollup merge of #59822 - GuillaumeGomez:fix-dark-theme-css, r=Manishearth
[rust.git] / src / libstd / Cargo.toml
1 [package]
2 authors = ["The Rust Project Developers"]
3 name = "std"
4 version = "0.0.0"
5 build = "build.rs"
6 license = "MIT/Apache-2.0"
7 repository = "https://github.com/rust-lang/rust.git"
8 description = "The Rust Standard Library"
9 edition = "2018"
10
11 [lib]
12 name = "std"
13 path = "lib.rs"
14 crate-type = ["dylib", "rlib"]
15
16 [dependencies]
17 alloc = { path = "../liballoc" }
18 panic_unwind = { path = "../libpanic_unwind", optional = true }
19 panic_abort = { path = "../libpanic_abort" }
20 core = { path = "../libcore" }
21 libc = { version = "0.2.51", default-features = false, features = ['rustc-dep-of-std'] }
22 compiler_builtins = { version = "0.1.9" }
23 profiler_builtins = { path = "../libprofiler_builtins", optional = true }
24 unwind = { path = "../libunwind" }
25 hashbrown = { version = "0.3.0", features = ['rustc-dep-of-std'] }
26 rustc-demangle = { version = "0.1.10", features = ['rustc-dep-of-std'] }
27 backtrace-sys = { version = "0.1.24", features = ["rustc-dep-of-std"], optional = true }
28
29 [dev-dependencies]
30 rand = "0.6.1"
31
32 [target.x86_64-apple-darwin.dependencies]
33 rustc_asan = { path = "../librustc_asan" }
34 rustc_tsan = { path = "../librustc_tsan" }
35
36 [target.x86_64-unknown-linux-gnu.dependencies]
37 rustc_asan = { path = "../librustc_asan" }
38 rustc_lsan = { path = "../librustc_lsan" }
39 rustc_msan = { path = "../librustc_msan" }
40 rustc_tsan = { path = "../librustc_tsan" }
41
42 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
43 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
44
45 [target.x86_64-fortanix-unknown-sgx.dependencies]
46 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
47
48 [build-dependencies]
49 cc = "1.0"
50
51 [features]
52 default = ["compiler_builtins_c", "std_detect_file_io", "std_detect_dlsym_getauxval"]
53
54 backtrace = ["backtrace-sys"]
55 panic-unwind = ["panic_unwind"]
56 profiler = ["profiler_builtins"]
57 compiler_builtins_c = ["compiler_builtins/c"]
58 llvm-libunwind = ["unwind/llvm-libunwind"]
59
60 # Make panics and failed asserts immediately abort without formatting any message
61 panic_immediate_abort = ["core/panic_immediate_abort"]
62
63 # An off-by-default feature which enables a linux-syscall-like ABI for libstd to
64 # interoperate with the host environment. Currently not well documented and
65 # requires rebuilding the standard library to use it.
66 wasm_syscall = []
67
68 # An off-by-default features to enable libstd to assume that wasm-bindgen is in
69 # the environment for hooking up some thread-related information like the
70 # current thread id and accessing/getting the current thread's TCB
71 wasm-bindgen-threads = []
72
73 # Enable std_detect default features for stdsimd:
74 # https://github.com/rust-lang-nursery/stdsimd/blob/master/crates/std_detect/Cargo.toml
75 std_detect_file_io = []
76 std_detect_dlsym_getauxval = []
77
78 [package.metadata.fortanix-sgx]
79 # Maximum possible number of threads when testing
80 threads = 125