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