2 authors = ["The Rust Project Developers"]
6 license = "MIT/Apache-2.0"
7 repository = "https://github.com/rust-lang/rust.git"
8 description = "The Rust Standard Library"
14 crate-type = ["dylib", "rlib"]
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.12" }
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 }
32 [target.x86_64-apple-darwin.dependencies]
33 rustc_asan = { path = "../librustc_asan" }
34 rustc_tsan = { path = "../librustc_tsan" }
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" }
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'] }
45 [target.x86_64-fortanix-unknown-sgx.dependencies]
46 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
52 default = ["compiler_builtins_c", "std_detect_file_io", "std_detect_dlsym_getauxval"]
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"]
60 # Make panics and failed asserts immediately abort without formatting any message
61 panic_immediate_abort = ["core/panic_immediate_abort"]
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.
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 = []
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 = []
78 [package.metadata.fortanix-sgx]
79 # Maximum possible number of threads when testing