blob: ef0ef415b4cbab4bbc00d7dbf5e8b86b00c627fd [file] [log] [blame]
ThiƩbaud Weksteend4f2c3c2020-11-03 11:08:00 +01001[package]
2authors = ["The Rust Project Developers"]
3name = "std"
4version = "0.0.0"
5license = "MIT OR Apache-2.0"
6repository = "https://github.com/rust-lang/rust.git"
7description = "The Rust Standard Library"
8edition = "2018"
9
10[lib]
11crate-type = ["dylib", "rlib"]
12
13[dependencies]
14alloc = { path = "../alloc" }
15cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
16panic_unwind = { path = "../panic_unwind", optional = true }
17panic_abort = { path = "../panic_abort" }
18core = { path = "../core" }
19libc = { version = "0.2.74", default-features = false, features = ['rustc-dep-of-std'] }
20compiler_builtins = { version = "0.1.32" }
21profiler_builtins = { path = "../profiler_builtins", optional = true }
22unwind = { path = "../unwind" }
23hashbrown = { version = "0.8.1", default-features = false, features = ['rustc-dep-of-std'] }
24
25# Dependencies of the `backtrace` crate
26addr2line = { version = "0.13.0", optional = true, default-features = false }
27rustc-demangle = { version = "0.1.4", features = ['rustc-dep-of-std'] }
28miniz_oxide = { version = "0.4.0", optional = true, default-features = false }
29[dependencies.object]
30version = "0.20"
31optional = true
32default-features = false
33features = ['read_core', 'elf', 'macho', 'pe']
34
35[dev-dependencies]
36rand = "0.7"
37
38[target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
39dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
40
41[target.x86_64-fortanix-unknown-sgx.dependencies]
42fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
43
44[target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'.dependencies]
45hermit-abi = { version = "0.1.15", features = ['rustc-dep-of-std'] }
46
47[target.wasm32-wasi.dependencies]
48wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false }
49
50[features]
51backtrace = [
52 "gimli-symbolize",
53 'addr2line/rustc-dep-of-std',
54 'object/rustc-dep-of-std',
55 'miniz_oxide/rustc-dep-of-std',
56]
57gimli-symbolize = []
58
59panic-unwind = ["panic_unwind"]
60profiler = ["profiler_builtins"]
61compiler-builtins-c = ["alloc/compiler-builtins-c"]
62llvm-libunwind = ["unwind/llvm-libunwind"]
63
64# Make panics and failed asserts immediately abort without formatting any message
65panic_immediate_abort = ["core/panic_immediate_abort"]
66
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
69std_detect_file_io = []
70std_detect_dlsym_getauxval = []
71
72[package.metadata.fortanix-sgx]
73# Maximum possible number of threads when testing
74threads = 125
75# Maximum heap size
76heap_size = 0x8000000
77
78[[bench]]
79name = "stdbenches"
80path = "benches/lib.rs"
81test = true