]> git.proxmox.com Git - rustc.git/blame - library/std/Cargo.toml
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / library / std / Cargo.toml
CommitLineData
7453a54e
SL
1[package]
2authors = ["The Rust Project Developers"]
3name = "std"
4version = "0.0.0"
48663c56 5license = "MIT OR Apache-2.0"
abe05a73
XL
6repository = "https://github.com/rust-lang/rust.git"
7description = "The Rust Standard Library"
532ac7d7 8edition = "2018"
7453a54e
SL
9
10[lib]
7453a54e 11crate-type = ["dylib", "rlib"]
7453a54e
SL
12
13[dependencies]
3dfed10e 14alloc = { path = "../alloc" }
dc9dc135 15cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
3dfed10e
XL
16panic_unwind = { path = "../panic_unwind", optional = true }
17panic_abort = { path = "../panic_abort" }
18core = { path = "../core" }
6a06907d 19libc = { version = "0.2.88", default-features = false, features = ['rustc-dep-of-std'] }
5869c6ff 20compiler_builtins = { version = "0.1.39" }
3dfed10e
XL
21profiler_builtins = { path = "../profiler_builtins", optional = true }
22unwind = { path = "../unwind" }
6a06907d 23hashbrown = { version = "0.11", default-features = false, features = ['rustc-dep-of-std'] }
e1599b0c 24
3dfed10e 25# Dependencies of the `backtrace` crate
fc512014 26addr2line = { version = "0.14.0", optional = true, default-features = false }
29967ef6 27rustc-demangle = { version = "0.1.18", features = ['rustc-dep-of-std'] }
3dfed10e
XL
28miniz_oxide = { version = "0.4.0", optional = true, default-features = false }
29[dependencies.object]
fc512014 30version = "0.22"
3dfed10e
XL
31optional = true
32default-features = false
fc512014 33features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
7453a54e 34
abe05a73 35[dev-dependencies]
e1599b0c 36rand = "0.7"
abe05a73 37
0731742a 38[target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
fc512014 39dlmalloc = { version = "0.2.1", features = ['rustc-dep-of-std'] }
0731742a
XL
40
41[target.x86_64-fortanix-unknown-sgx.dependencies]
42fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
a1dfa0c6 43
e74abb32 44[target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'.dependencies]
29967ef6 45hermit-abi = { version = "0.1.17", features = ['rustc-dep-of-std'] }
e74abb32 46
e1599b0c 47[target.wasm32-wasi.dependencies]
60c5eb7d 48wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false }
e1599b0c 49
7453a54e 50[features]
e1599b0c 51backtrace = [
3dfed10e
XL
52 "gimli-symbolize",
53 'addr2line/rustc-dep-of-std',
54 'object/rustc-dep-of-std',
55 'miniz_oxide/rustc-dep-of-std',
e1599b0c 56]
3dfed10e 57gimli-symbolize = []
e1599b0c 58
476ff2be 59panic-unwind = ["panic_unwind"]
041b39d2 60profiler = ["profiler_builtins"]
dc9dc135 61compiler-builtins-c = ["alloc/compiler-builtins-c"]
1b1a35ee 62compiler-builtins-mem = ["alloc/compiler-builtins-mem"]
5869c6ff 63compiler-builtins-no-asm = ["alloc/compiler-builtins-no-asm"]
fc512014 64compiler-builtins-mangled-names = ["alloc/compiler-builtins-mangled-names"]
532ac7d7 65llvm-libunwind = ["unwind/llvm-libunwind"]
29967ef6 66system-llvm-libunwind = ["unwind/system-llvm-libunwind"]
a1dfa0c6
XL
67
68# Make panics and failed asserts immediately abort without formatting any message
69panic_immediate_abort = ["core/panic_immediate_abort"]
0bf4aa26 70
416331ca
XL
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
9fa01778
XL
73std_detect_file_io = []
74std_detect_dlsym_getauxval = []
532ac7d7
XL
75
76[package.metadata.fortanix-sgx]
77# Maximum possible number of threads when testing
78threads = 125
dc9dc135
XL
79# Maximum heap size
80heap_size = 0x8000000
f035d41b
XL
81
82[[bench]]
83name = "stdbenches"
84path = "benches/lib.rs"
85test = true