1cargo-features = ["public-dependency"]
2
3[package]
4name = "std"
5version = "0.0.0"
6license = "MIT OR Apache-2.0"
7repository = "https://github.com/rust-lang/rust.git"
8description = "The Rust Standard Library"
9edition = "2021"
10
11[lib]
12crate-type = ["dylib", "rlib"]
13
14[dependencies]
15alloc = { path = "../alloc", public = true }
16cfg-if = { version = "1.0", features = ['rustc-dep-of-std'] }
17panic_unwind = { path = "../panic_unwind", optional = true }
18panic_abort = { path = "../panic_abort" }
19core = { path = "../core", public = true }
20compiler_builtins = { version = "0.1.105" }
21profiler_builtins = { path = "../profiler_builtins", optional = true }
22unwind = { path = "../unwind" }
23hashbrown = { version = "0.14", default-features = false, features = ['rustc-dep-of-std'] }
24std_detect = { path = "../stdarch/crates/std_detect", default-features = false, features = ['rustc-dep-of-std'] }
25
26# Dependencies of the `backtrace` crate
27rustc-demangle = { version = "0.1.21", features = ['rustc-dep-of-std'] }
28
29[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
30miniz_oxide = { version = "0.7.0", optional = true, default-features = false }
31addr2line = { version = "0.21.0", optional = true, default-features = false }
32
33[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
34libc = { version = "0.2.153", default-features = false, features = ['rustc-dep-of-std'], public = true }
35
36[target.'cfg(all(windows, target_env = "msvc"))'.dependencies]
37libc = { version = "0.2.153", default-features = false }
38
39[target.'cfg(all(not(target_os = "aix"), not(all(windows, target_env = "msvc", not(target_vendor = "uwp")))))'.dependencies]
40object = { version = "0.32.0", default-features = false, optional = true, features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive'] }
41
42[target.'cfg(target_os = "aix")'.dependencies]
43object = { version = "0.32.0", default-features = false, optional = true, features = ['read_core', 'xcoff', 'unaligned', 'archive'] }
44
45[dev-dependencies]
46rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
47rand_xorshift = "0.3.0"
48
49[target.'cfg(any(all(target_family = "wasm", target_os = "unknown"), target_os = "xous", all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
50dlmalloc = { version = "0.2.4", features = ['rustc-dep-of-std'] }
51
52[target.x86_64-fortanix-unknown-sgx.dependencies]
53fortanix-sgx-abi = { version = "0.5.0", features = ['rustc-dep-of-std'], public = true }
54
55[target.'cfg(target_os = "hermit")'.dependencies]
56hermit-abi = { version = "0.3.9", features = ['rustc-dep-of-std'], public = true }
57
58[target.'cfg(target_os = "wasi")'.dependencies]
59wasi = { version = "0.11.0", features = ['rustc-dep-of-std'], default-features = false }
60
61[target.'cfg(target_os = "uefi")'.dependencies]
62r-efi = { version = "4.2.0", features = ['rustc-dep-of-std'] }
63r-efi-alloc = { version = "1.0.0", features = ['rustc-dep-of-std'] }
64
65[features]
66backtrace = [
67 "gimli-symbolize",
68 'addr2line/rustc-dep-of-std',
69 'object/rustc-dep-of-std',
70 'miniz_oxide/rustc-dep-of-std',
71]
72gimli-symbolize = []
73
74panic-unwind = ["panic_unwind"]
75profiler = ["profiler_builtins"]
76compiler-builtins-c = ["alloc/compiler-builtins-c"]
77compiler-builtins-mem = ["alloc/compiler-builtins-mem"]
78compiler-builtins-no-asm = ["alloc/compiler-builtins-no-asm"]
79compiler-builtins-mangled-names = ["alloc/compiler-builtins-mangled-names"]
80compiler-builtins-weak-intrinsics = ["alloc/compiler-builtins-weak-intrinsics"]
81llvm-libunwind = ["unwind/llvm-libunwind"]
82system-llvm-libunwind = ["unwind/system-llvm-libunwind"]
83
84# Make panics and failed asserts immediately abort without formatting any message
85panic_immediate_abort = ["core/panic_immediate_abort", "alloc/panic_immediate_abort"]
86
87# Enable std_detect default features for stdarch/crates/std_detect:
88# https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
89std_detect_file_io = ["std_detect/std_detect_file_io"]
90std_detect_dlsym_getauxval = ["std_detect/std_detect_dlsym_getauxval"]
91std_detect_env_override = ["std_detect/std_detect_env_override"]
92
93[package.metadata.fortanix-sgx]
94# Maximum possible number of threads when testing
95threads = 125
96# Maximum heap size
97heap_size = 0x8000000
98
99[[bench]]
100name = "stdbenches"
101path = "benches/lib.rs"
102test = true
103