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"
11 crate-type = ["dylib", "rlib"]
14 alloc = { path = "../alloc" }
15 cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
16 panic_unwind = { path = "../panic_unwind", optional = true }
17 panic_abort = { path = "../panic_abort" }
18 core = { path = "../core" }
19 libc = { version = "0.2.51", default-features = false, features = ['rustc-dep-of-std'] }
20 compiler_builtins = { version = "0.1.32" }
21 profiler_builtins = { path = "../profiler_builtins", optional = true }
22 unwind = { path = "../unwind" }
23 hashbrown = { version = "0.6.2", default-features = false, features = ['rustc-dep-of-std'] }
25 [dependencies.backtrace_rs]
28 default-features = false # without the libstd `backtrace` feature, stub out everything
29 features = [ "rustc-dep-of-std" ] # enable build support for integrating into libstd
34 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
35 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
37 [target.x86_64-fortanix-unknown-sgx.dependencies]
38 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
40 [target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'.dependencies]
41 hermit-abi = { version = "0.1.15", features = ['rustc-dep-of-std'] }
43 [target.wasm32-wasi.dependencies]
44 wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false }
48 "backtrace_rs/dbghelp", # backtrace/symbolize on MSVC
49 "backtrace_rs/libbacktrace", # symbolize on most platforms
50 "backtrace_rs/libunwind", # backtrace on most platforms
51 "backtrace_rs/dladdr", # symbolize on platforms w/o libbacktrace
54 panic-unwind = ["panic_unwind"]
55 profiler = ["profiler_builtins"]
56 compiler-builtins-c = ["alloc/compiler-builtins-c"]
57 llvm-libunwind = ["unwind/llvm-libunwind"]
59 # Make panics and failed asserts immediately abort without formatting any message
60 panic_immediate_abort = ["core/panic_immediate_abort"]
62 # Enable std_detect default features for stdarch/crates/std_detect:
63 # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
64 std_detect_file_io = []
65 std_detect_dlsym_getauxval = []
67 [package.metadata.fortanix-sgx]
68 # Maximum possible number of threads when testing
75 path = "benches/lib.rs"