]> git.lizzy.rs Git - rust.git/blob - src/libstd/Cargo.toml
Don't use ExpnKind::descr to get the name of a bang macro.
[rust.git] / src / libstd / Cargo.toml
1 [package]
2 authors = ["The Rust Project Developers"]
3 name = "std"
4 version = "0.0.0"
5 build = "build.rs"
6 license = "MIT OR Apache-2.0"
7 repository = "https://github.com/rust-lang/rust.git"
8 description = "The Rust Standard Library"
9 edition = "2018"
10
11 [lib]
12 name = "std"
13 path = "lib.rs"
14 crate-type = ["dylib", "rlib"]
15
16 [dependencies]
17 alloc = { path = "../liballoc" }
18 cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
19 panic_unwind = { path = "../libpanic_unwind", optional = true }
20 panic_abort = { path = "../libpanic_abort" }
21 core = { path = "../libcore" }
22 libc = { version = "0.2.51", default-features = false, features = ['rustc-dep-of-std'] }
23 compiler_builtins = { version = "0.1.16" }
24 profiler_builtins = { path = "../libprofiler_builtins", optional = true }
25 unwind = { path = "../libunwind" }
26 hashbrown = { version = "0.6.2", default-features = false, features = ['rustc-dep-of-std'] }
27
28 [dependencies.backtrace_rs]
29 package = "backtrace"
30 version = "0.3.37"
31 default-features = false # without the libstd `backtrace` feature, stub out everything
32 features = [ "rustc-dep-of-std" ] # enable build support for integrating into libstd
33
34 [dev-dependencies]
35 rand = "0.7"
36
37 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
38 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
39
40 [target.x86_64-fortanix-unknown-sgx.dependencies]
41 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
42
43 [target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'.dependencies]
44 hermit-abi = { version = "0.1", features = ['rustc-dep-of-std'] }
45
46 [target.wasm32-wasi.dependencies]
47 wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false }
48
49 [features]
50 default = ["std_detect_file_io", "std_detect_dlsym_getauxval"]
51
52 backtrace = [
53   "backtrace_rs/dbghelp",          # backtrace/symbolize on MSVC
54   "backtrace_rs/libbacktrace",     # symbolize on most platforms
55   "backtrace_rs/libunwind",        # backtrace on most platforms
56   "backtrace_rs/dladdr",           # symbolize on platforms w/o libbacktrace
57 ]
58
59 panic-unwind = ["panic_unwind"]
60 profiler = ["profiler_builtins"]
61 compiler-builtins-c = ["alloc/compiler-builtins-c"]
62 llvm-libunwind = ["unwind/llvm-libunwind"]
63
64 # Make panics and failed asserts immediately abort without formatting any message
65 panic_immediate_abort = ["core/panic_immediate_abort"]
66
67 # Enable std_detect default features for stdarch/crates/std_detect:
68 # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
69 std_detect_file_io = []
70 std_detect_dlsym_getauxval = []
71
72 [package.metadata.fortanix-sgx]
73 # Maximum possible number of threads when testing
74 threads = 125
75 # Maximum heap size
76 heap_size = 0x8000000