2 authors = ["The Rust Project Developers"]
5 license = "MIT OR Apache-2.0"
6 repository = "https://github.com/rust-lang/rust.git"
7 description = "The Rust Standard Library"
13 crate-type = ["dylib", "rlib"]
16 alloc = { path = "../liballoc" }
17 cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
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.32" }
23 profiler_builtins = { path = "../libprofiler_builtins", optional = true }
24 unwind = { path = "../libunwind" }
25 hashbrown = { version = "0.6.2", default-features = false, features = ['rustc-dep-of-std'] }
27 [dependencies.backtrace_rs]
30 default-features = false # without the libstd `backtrace` feature, stub out everything
31 features = [ "rustc-dep-of-std" ] # enable build support for integrating into libstd
36 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
37 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
39 [target.x86_64-fortanix-unknown-sgx.dependencies]
40 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
42 [target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'.dependencies]
43 hermit-abi = { version = "0.1.15", features = ['rustc-dep-of-std'] }
45 [target.wasm32-wasi.dependencies]
46 wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false }
50 "backtrace_rs/dbghelp", # backtrace/symbolize on MSVC
51 "backtrace_rs/libbacktrace", # symbolize on most platforms
52 "backtrace_rs/libunwind", # backtrace on most platforms
53 "backtrace_rs/dladdr", # symbolize on platforms w/o libbacktrace
56 panic-unwind = ["panic_unwind"]
57 profiler = ["profiler_builtins"]
58 compiler-builtins-c = ["alloc/compiler-builtins-c"]
59 llvm-libunwind = ["unwind/llvm-libunwind"]
61 # Make panics and failed asserts immediately abort without formatting any message
62 panic_immediate_abort = ["core/panic_immediate_abort"]
64 # Enable std_detect default features for stdarch/crates/std_detect:
65 # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
66 std_detect_file_io = []
67 std_detect_dlsym_getauxval = []
69 [package.metadata.fortanix-sgx]
70 # Maximum possible number of threads when testing
77 path = "benches/lib.rs"