2 authors = ["The Rust Project Developers"]
6 license = "MIT OR 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 cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
19 panic_unwind = { path = "../libpanic_unwind", optional = true }
20 panic_abort = { path = "../libpanic_abort" }
21 core = { path = "../libcore" }
22 libc = { version = "0.2.51", default-features = false, features = ['rustc-dep-of-std'] }
23 compiler_builtins = { version = "0.1.16" }
24 profiler_builtins = { path = "../libprofiler_builtins", optional = true }
25 unwind = { path = "../libunwind" }
26 hashbrown = { version = "0.4.0", features = ['rustc-dep-of-std'] }
28 [dependencies.backtrace]
30 default-features = false # don't use coresymbolication on OSX
32 "rustc-dep-of-std", # enable build support for integrating into libstd
33 "dbghelp", # backtrace/symbolize on MSVC
34 "libbacktrace", # symbolize on most platforms
35 "libunwind", # backtrace on most platforms
36 "dladdr", # symbolize on platforms w/o libbacktrace
43 [target.x86_64-apple-darwin.dependencies]
44 rustc_asan = { path = "../librustc_asan" }
45 rustc_tsan = { path = "../librustc_tsan" }
47 [target.x86_64-unknown-linux-gnu.dependencies]
48 rustc_asan = { path = "../librustc_asan" }
49 rustc_lsan = { path = "../librustc_lsan" }
50 rustc_msan = { path = "../librustc_msan" }
51 rustc_tsan = { path = "../librustc_tsan" }
53 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
54 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
56 [target.x86_64-fortanix-unknown-sgx.dependencies]
57 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
63 default = ["std_detect_file_io", "std_detect_dlsym_getauxval"]
65 panic-unwind = ["panic_unwind"]
66 profiler = ["profiler_builtins"]
67 compiler-builtins-c = ["alloc/compiler-builtins-c"]
68 llvm-libunwind = ["unwind/llvm-libunwind"]
70 # Make panics and failed asserts immediately abort without formatting any message
71 panic_immediate_abort = ["core/panic_immediate_abort"]
73 # An off-by-default feature which enables a linux-syscall-like ABI for libstd to
74 # interoperate with the host environment. Currently not well documented and
75 # requires rebuilding the standard library to use it.
78 # An off-by-default features to enable libstd to assume that wasm-bindgen is in
79 # the environment for hooking up some thread-related information like the
80 # current thread id and accessing/getting the current thread's TCB
81 wasm-bindgen-threads = []
83 # Enable std_detect default features for stdarch/crates/std_detect:
84 # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
85 std_detect_file_io = []
86 std_detect_dlsym_getauxval = []
88 [package.metadata.fortanix-sgx]
89 # Maximum possible number of threads when testing