]> git.lizzy.rs Git - rust.git/blob - library/std/Cargo.toml
b4951488fd86ca411076aab9d426d59516afd25d
[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.51", default-features = false, features = ['rustc-dep-of-std'] }
20 compiler_builtins = { version = "0.1.32" }
21 profiler_builtins = { path = "../profiler_builtins", optional = true }
22 unwind = { path = "../unwind" }
23 hashbrown = { version = "0.6.2", default-features = false, features = ['rustc-dep-of-std'] }
24
25 [dependencies.backtrace_rs]
26 package = "backtrace"
27 version = "0.3.46"
28 default-features = false # without the libstd `backtrace` feature, stub out everything
29 features = [ "rustc-dep-of-std" ] # enable build support for integrating into libstd
30
31 [dev-dependencies]
32 rand = "0.7"
33
34 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
35 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
36
37 [target.x86_64-fortanix-unknown-sgx.dependencies]
38 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
39
40 [target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'.dependencies]
41 hermit-abi = { version = "0.1.15", features = ['rustc-dep-of-std'] }
42
43 [target.wasm32-wasi.dependencies]
44 wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false }
45
46 [features]
47 backtrace = [
48   "backtrace_rs/dbghelp",          # backtrace/symbolize on MSVC
49   "backtrace_rs/libbacktrace",     # symbolize on most platforms
50   "backtrace_rs/libunwind",        # backtrace on most platforms
51   "backtrace_rs/dladdr",           # symbolize on platforms w/o libbacktrace
52 ]
53
54 panic-unwind = ["panic_unwind"]
55 profiler = ["profiler_builtins"]
56 compiler-builtins-c = ["alloc/compiler-builtins-c"]
57 llvm-libunwind = ["unwind/llvm-libunwind"]
58
59 # Make panics and failed asserts immediately abort without formatting any message
60 panic_immediate_abort = ["core/panic_immediate_abort"]
61
62 # Enable std_detect default features for stdarch/crates/std_detect:
63 # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
64 std_detect_file_io = []
65 std_detect_dlsym_getauxval = []
66
67 [package.metadata.fortanix-sgx]
68 # Maximum possible number of threads when testing
69 threads = 125
70 # Maximum heap size
71 heap_size = 0x8000000
72
73 [[bench]]
74 name = "stdbenches"
75 path = "benches/lib.rs"
76 test = true