]> git.proxmox.com Git - rustc.git/blame - library/std/Cargo.toml
New upstream version 1.63.0+dfsg1
[rustc.git] / library / std / Cargo.toml
CommitLineData
7453a54e 1[package]
7453a54e
SL
2name = "std"
3version = "0.0.0"
48663c56 4license = "MIT OR Apache-2.0"
abe05a73
XL
5repository = "https://github.com/rust-lang/rust.git"
6description = "The Rust Standard Library"
a2a8927a 7edition = "2021"
7453a54e
SL
8
9[lib]
7453a54e 10crate-type = ["dylib", "rlib"]
7453a54e
SL
11
12[dependencies]
3dfed10e 13alloc = { path = "../alloc" }
dc9dc135 14cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
3dfed10e
XL
15panic_unwind = { path = "../panic_unwind", optional = true }
16panic_abort = { path = "../panic_abort" }
17core = { path = "../core" }
923072b8
FG
18libc = { version = "0.2.126", default-features = false, features = ['rustc-dep-of-std'] }
19compiler_builtins = { version = "0.1.73" }
3dfed10e
XL
20profiler_builtins = { path = "../profiler_builtins", optional = true }
21unwind = { path = "../unwind" }
5099ac24 22hashbrown = { version = "0.12", default-features = false, features = ['rustc-dep-of-std'] }
cdc7bbd5 23std_detect = { path = "../stdarch/crates/std_detect", default-features = false, features = ['rustc-dep-of-std'] }
e1599b0c 24
3dfed10e 25# Dependencies of the `backtrace` crate
94222f64
XL
26addr2line = { version = "0.16.0", optional = true, default-features = false }
27rustc-demangle = { version = "0.1.21", features = ['rustc-dep-of-std'] }
3dfed10e
XL
28miniz_oxide = { version = "0.4.0", optional = true, default-features = false }
29[dependencies.object]
94222f64 30version = "0.26.1"
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
3c0e092e
XL
38[target.'cfg(any(all(target_family = "wasm", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
39dlmalloc = { version = "0.2.3", 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
5e7ed085
FG
44[target.'cfg(target_os = "hermit")'.dependencies]
45hermit-abi = { version = "0.2.0", features = ['rustc-dep-of-std'] }
e74abb32 46
e1599b0c 47[target.wasm32-wasi.dependencies]
5099ac24 48wasi = { version = "0.11.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
cdc7bbd5
XL
73std_detect_file_io = ["std_detect/std_detect_file_io"]
74std_detect_dlsym_getauxval = ["std_detect/std_detect_dlsym_getauxval"]
c295e0f8 75std_detect_env_override = ["std_detect/std_detect_env_override"]
532ac7d7
XL
76
77[package.metadata.fortanix-sgx]
78# Maximum possible number of threads when testing
79threads = 125
dc9dc135
XL
80# Maximum heap size
81heap_size = 0x8000000
f035d41b
XL
82
83[[bench]]
84name = "stdbenches"
85path = "benches/lib.rs"
86test = true