]> git.lizzy.rs Git - rust.git/blob - library/std/Cargo.toml
Auto merge of #85490 - CDirkx:fix-vxworks, r=dtolnay
[rust.git] / library / std / Cargo.toml
1 [package]
2 authors = ["The Rust Project Developers"]
3 name = "std"
4 version = "0.0.0"
5 license = "MIT OR Apache-2.0"
6 repository = "https://github.com/rust-lang/rust.git"
7 description = "The Rust Standard Library"
8 edition = "2018"
9
10 [lib]
11 crate-type = ["dylib", "rlib"]
12
13 [dependencies]
14 alloc = { path = "../alloc" }
15 cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
16 panic_unwind = { path = "../panic_unwind", optional = true }
17 panic_abort = { path = "../panic_abort" }
18 core = { path = "../core" }
19 libc = { version = "0.2.93", default-features = false, features = ['rustc-dep-of-std'] }
20 compiler_builtins = { version = "0.1.43" }
21 profiler_builtins = { path = "../profiler_builtins", optional = true }
22 unwind = { path = "../unwind" }
23 hashbrown = { version = "0.11", default-features = false, features = ['rustc-dep-of-std'] }
24 std_detect = { path = "../stdarch/crates/std_detect", default-features = false, features = ['rustc-dep-of-std'] }
25
26 # Dependencies of the `backtrace` crate
27 addr2line = { version = "0.14.0", optional = true, default-features = false }
28 rustc-demangle = { version = "0.1.18", features = ['rustc-dep-of-std'] }
29 miniz_oxide = { version = "0.4.0", optional = true, default-features = false }
30 [dependencies.object]
31 version = "0.22"
32 optional = true
33 default-features = false
34 features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
35
36 [dev-dependencies]
37 rand = "0.7"
38
39 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
40 dlmalloc = { version = "0.2.1", features = ['rustc-dep-of-std'] }
41
42 [target.x86_64-fortanix-unknown-sgx.dependencies]
43 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
44
45 [target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'.dependencies]
46 hermit-abi = { version = "0.1.17", features = ['rustc-dep-of-std'] }
47
48 [target.wasm32-wasi.dependencies]
49 wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false }
50
51 [features]
52 backtrace = [
53   "gimli-symbolize",
54   'addr2line/rustc-dep-of-std',
55   'object/rustc-dep-of-std',
56   'miniz_oxide/rustc-dep-of-std',
57 ]
58 gimli-symbolize = []
59
60 panic-unwind = ["panic_unwind"]
61 profiler = ["profiler_builtins"]
62 compiler-builtins-c = ["alloc/compiler-builtins-c"]
63 compiler-builtins-mem = ["alloc/compiler-builtins-mem"]
64 compiler-builtins-no-asm = ["alloc/compiler-builtins-no-asm"]
65 compiler-builtins-mangled-names = ["alloc/compiler-builtins-mangled-names"]
66 llvm-libunwind = ["unwind/llvm-libunwind"]
67 system-llvm-libunwind = ["unwind/system-llvm-libunwind"]
68
69 # Make panics and failed asserts immediately abort without formatting any message
70 panic_immediate_abort = ["core/panic_immediate_abort"]
71
72 # Enable std_detect default features for stdarch/crates/std_detect:
73 # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
74 std_detect_file_io = ["std_detect/std_detect_file_io"]
75 std_detect_dlsym_getauxval = ["std_detect/std_detect_dlsym_getauxval"]
76
77 [package.metadata.fortanix-sgx]
78 # Maximum possible number of threads when testing
79 threads = 125
80 # Maximum heap size
81 heap_size = 0x8000000
82
83 [[bench]]
84 name = "stdbenches"
85 path = "benches/lib.rs"
86 test = true