4 license = "MIT OR Apache-2.0"
5 repository = "https://github.com/rust-lang/rust.git"
6 description = "The Rust Standard Library"
10 crate-type = ["dylib", "rlib"]
13 alloc = { path = "../alloc" }
14 cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] }
15 panic_unwind = { path = "../panic_unwind", optional = true }
16 panic_abort = { path = "../panic_abort" }
17 core = { path = "../core" }
18 libc = { version = "0.2.138", default-features = false, features = ['rustc-dep-of-std'] }
19 compiler_builtins = { version = "0.1.82" }
20 profiler_builtins = { path = "../profiler_builtins", optional = true }
21 unwind = { path = "../unwind" }
22 hashbrown = { version = "0.12", default-features = false, features = ['rustc-dep-of-std'] }
23 std_detect = { path = "../stdarch/crates/std_detect", default-features = false, features = ['rustc-dep-of-std'] }
25 # Dependencies of the `backtrace` crate
26 addr2line = { version = "0.17.0", optional = true, default-features = false }
27 rustc-demangle = { version = "0.1.21", features = ['rustc-dep-of-std'] }
28 miniz_oxide = { version = "0.5.0", optional = true, default-features = false }
32 default-features = false
33 features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
38 [target.'cfg(any(all(target_family = "wasm", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
39 dlmalloc = { version = "0.2.3", features = ['rustc-dep-of-std'] }
41 [target.x86_64-fortanix-unknown-sgx.dependencies]
42 fortanix-sgx-abi = { version = "0.5.0", features = ['rustc-dep-of-std'] }
44 [target.'cfg(target_os = "hermit")'.dependencies]
45 hermit-abi = { version = "0.2.6", features = ['rustc-dep-of-std'] }
47 [target.wasm32-wasi.dependencies]
48 wasi = { version = "0.11.0", features = ['rustc-dep-of-std'], default-features = false }
53 'addr2line/rustc-dep-of-std',
54 'object/rustc-dep-of-std',
55 'miniz_oxide/rustc-dep-of-std',
59 panic-unwind = ["panic_unwind"]
60 profiler = ["profiler_builtins"]
61 compiler-builtins-c = ["alloc/compiler-builtins-c"]
62 compiler-builtins-mem = ["alloc/compiler-builtins-mem"]
63 compiler-builtins-no-asm = ["alloc/compiler-builtins-no-asm"]
64 compiler-builtins-mangled-names = ["alloc/compiler-builtins-mangled-names"]
65 llvm-libunwind = ["unwind/llvm-libunwind"]
66 system-llvm-libunwind = ["unwind/system-llvm-libunwind"]
68 # Make panics and failed asserts immediately abort without formatting any message
69 panic_immediate_abort = ["core/panic_immediate_abort"]
71 # Enable std_detect default features for stdarch/crates/std_detect:
72 # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
73 std_detect_file_io = ["std_detect/std_detect_file_io"]
74 std_detect_dlsym_getauxval = ["std_detect/std_detect_dlsym_getauxval"]
75 std_detect_env_override = ["std_detect/std_detect_env_override"]
77 [package.metadata.fortanix-sgx]
78 # Maximum possible number of threads when testing
85 path = "benches/lib.rs"