]> git.lizzy.rs Git - rust.git/blob - src/libstd/Cargo.toml
Rollup merge of #58199 - clintfred:partial-move-err-msg, r=estebank
[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
10 [lib]
11 name = "std"
12 path = "lib.rs"
13 crate-type = ["dylib", "rlib"]
14
15 [dependencies]
16 alloc = { path = "../liballoc" }
17 panic_unwind = { path = "../libpanic_unwind", optional = true }
18 panic_abort = { path = "../libpanic_abort" }
19 core = { path = "../libcore" }
20 libc = { version = "0.2.44", default-features = false, features = ['rustc-dep-of-std'] }
21 compiler_builtins = { version = "0.1.1" }
22 profiler_builtins = { path = "../libprofiler_builtins", optional = true }
23 unwind = { path = "../libunwind" }
24 rustc-demangle = { version = "0.1.10", features = ['rustc-dep-of-std'] }
25 backtrace-sys = { version = "0.1.24", features = ["rustc-dep-of-std"], optional = true }
26
27 [dev-dependencies]
28 rand = "0.6.1"
29
30 [target.x86_64-apple-darwin.dependencies]
31 rustc_asan = { path = "../librustc_asan" }
32 rustc_tsan = { path = "../librustc_tsan" }
33
34 [target.x86_64-unknown-linux-gnu.dependencies]
35 rustc_asan = { path = "../librustc_asan" }
36 rustc_lsan = { path = "../librustc_lsan" }
37 rustc_msan = { path = "../librustc_msan" }
38 rustc_tsan = { path = "../librustc_tsan" }
39
40 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
41 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
42
43 [target.x86_64-fortanix-unknown-sgx.dependencies]
44 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
45
46 [build-dependencies]
47 cc = "1.0"
48
49 [features]
50 default = ["compiler_builtins_c", "std_detect_file_io", "std_detect_dlsym_getauxval"]
51
52 backtrace = ["backtrace-sys"]
53 panic-unwind = ["panic_unwind"]
54 profiler = ["profiler_builtins"]
55 compiler_builtins_c = ["compiler_builtins/c"]
56
57 # Make panics and failed asserts immediately abort without formatting any message
58 panic_immediate_abort = ["core/panic_immediate_abort"]
59
60 # An off-by-default feature which enables a linux-syscall-like ABI for libstd to
61 # interoperate with the host environment. Currently not well documented and
62 # requires rebuilding the standard library to use it.
63 wasm_syscall = []
64
65 # An off-by-default features to enable libstd to assume that wasm-bindgen is in
66 # the environment for hooking up some thread-related information like the
67 # current thread id and accessing/getting the current thread's TCB
68 wasm-bindgen-threads = []
69
70 # Enable std_detect default features for stdsimd:
71 # https://github.com/rust-lang-nursery/stdsimd/blob/master/crates/std_detect/Cargo.toml
72 std_detect_file_io = []
73 std_detect_dlsym_getauxval = []