]> git.lizzy.rs Git - rust.git/blob - src/libstd/Cargo.toml
Rollup merge of #59128 - oli-obk:colorful_json, r=mark-i-m,eddyb
[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 rustc-demangle = { version = "0.1.10", features = ['rustc-dep-of-std'] }
26 backtrace-sys = { version = "0.1.24", features = ["rustc-dep-of-std"], optional = true }
27
28 [dev-dependencies]
29 rand = "0.6.1"
30
31 [target.x86_64-apple-darwin.dependencies]
32 rustc_asan = { path = "../librustc_asan" }
33 rustc_tsan = { path = "../librustc_tsan" }
34
35 [target.x86_64-unknown-linux-gnu.dependencies]
36 rustc_asan = { path = "../librustc_asan" }
37 rustc_lsan = { path = "../librustc_lsan" }
38 rustc_msan = { path = "../librustc_msan" }
39 rustc_tsan = { path = "../librustc_tsan" }
40
41 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
42 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
43
44 [target.x86_64-fortanix-unknown-sgx.dependencies]
45 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
46
47 [build-dependencies]
48 cc = "1.0"
49
50 [features]
51 default = ["compiler_builtins_c", "std_detect_file_io", "std_detect_dlsym_getauxval"]
52
53 backtrace = ["backtrace-sys"]
54 panic-unwind = ["panic_unwind"]
55 profiler = ["profiler_builtins"]
56 compiler_builtins_c = ["compiler_builtins/c"]
57 llvm-libunwind = ["unwind/llvm-libunwind"]
58
59 # Make panics and failed asserts immediately abort without formatting any message
60 panic_immediate_abort = ["core/panic_immediate_abort"]
61
62 # An off-by-default feature which enables a linux-syscall-like ABI for libstd to
63 # interoperate with the host environment. Currently not well documented and
64 # requires rebuilding the standard library to use it.
65 wasm_syscall = []
66
67 # An off-by-default features to enable libstd to assume that wasm-bindgen is in
68 # the environment for hooking up some thread-related information like the
69 # current thread id and accessing/getting the current thread's TCB
70 wasm-bindgen-threads = []
71
72 # Enable std_detect default features for stdsimd:
73 # https://github.com/rust-lang-nursery/stdsimd/blob/master/crates/std_detect/Cargo.toml
74 std_detect_file_io = []
75 std_detect_dlsym_getauxval = []
76
77 [package.metadata.fortanix-sgx]
78 # Maximum possible number of threads when testing
79 threads = 125