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"
13 crate-type = ["dylib", "rlib"]
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 }
30 [target.x86_64-apple-darwin.dependencies]
31 rustc_asan = { path = "../librustc_asan" }
32 rustc_tsan = { path = "../librustc_tsan" }
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" }
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'] }
43 [target.x86_64-fortanix-unknown-sgx.dependencies]
44 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
50 default = ["compiler_builtins_c", "std_detect_file_io", "std_detect_dlsym_getauxval"]
52 backtrace = ["backtrace-sys"]
53 panic-unwind = ["panic_unwind"]
54 profiler = ["profiler_builtins"]
55 compiler_builtins_c = ["compiler_builtins/c"]
57 # Make panics and failed asserts immediately abort without formatting any message
58 panic_immediate_abort = ["core/panic_immediate_abort"]
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.
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 = []
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 = []