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.6.1", default-features = false, features = ['rustc-dep-of-std'] }
28 [dependencies.backtrace_rs]
31 default-features = false # without the libstd `backtrace` feature, stub out everything
32 features = [ "rustc-dep-of-std" ] # enable build support for integrating into libstd
37 [target.x86_64-apple-darwin.dependencies]
38 rustc_asan = { path = "../librustc_asan" }
39 rustc_tsan = { path = "../librustc_tsan" }
41 [target.x86_64-unknown-linux-gnu.dependencies]
42 rustc_asan = { path = "../librustc_asan" }
43 rustc_lsan = { path = "../librustc_lsan" }
44 rustc_msan = { path = "../librustc_msan" }
45 rustc_tsan = { path = "../librustc_tsan" }
47 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
48 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
50 [target.x86_64-fortanix-unknown-sgx.dependencies]
51 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
53 [target.wasm32-wasi.dependencies]
54 wasi = { version = "0.7.0", features = ['rustc-dep-of-std', 'alloc'] }
57 default = ["std_detect_file_io", "std_detect_dlsym_getauxval"]
60 "backtrace_rs/dbghelp", # backtrace/symbolize on MSVC
61 "backtrace_rs/libbacktrace", # symbolize on most platforms
62 "backtrace_rs/libunwind", # backtrace on most platforms
63 "backtrace_rs/dladdr", # symbolize on platforms w/o libbacktrace
66 panic-unwind = ["panic_unwind"]
67 profiler = ["profiler_builtins"]
68 compiler-builtins-c = ["alloc/compiler-builtins-c"]
69 llvm-libunwind = ["unwind/llvm-libunwind"]
71 # Make panics and failed asserts immediately abort without formatting any message
72 panic_immediate_abort = ["core/panic_immediate_abort"]
74 # Enable std_detect default features for stdarch/crates/std_detect:
75 # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
76 std_detect_file_io = []
77 std_detect_dlsym_getauxval = []
79 [package.metadata.fortanix-sgx]
80 # Maximum possible number of threads when testing