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.2", 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.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
38 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
40 [target.x86_64-fortanix-unknown-sgx.dependencies]
41 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
43 [target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'.dependencies]
44 hermit-abi = { version = "0.1.12", features = ['rustc-dep-of-std'] }
46 [target.wasm32-wasi.dependencies]
47 wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false }
50 default = ["std_detect_file_io", "std_detect_dlsym_getauxval", "panic-unwind"]
53 "backtrace_rs/dbghelp", # backtrace/symbolize on MSVC
54 "backtrace_rs/libbacktrace", # symbolize on most platforms
55 "backtrace_rs/libunwind", # backtrace on most platforms
56 "backtrace_rs/dladdr", # symbolize on platforms w/o libbacktrace
59 panic-unwind = ["panic_unwind"]
60 profiler = ["profiler_builtins"]
61 compiler-builtins-c = ["alloc/compiler-builtins-c"]
62 llvm-libunwind = ["unwind/llvm-libunwind"]
64 # Make panics and failed asserts immediately abort without formatting any message
65 panic_immediate_abort = ["core/panic_immediate_abort"]
67 # Enable std_detect default features for stdarch/crates/std_detect:
68 # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
69 std_detect_file_io = []
70 std_detect_dlsym_getauxval = []
72 [package.metadata.fortanix-sgx]
73 # Maximum possible number of threads when testing