]> git.proxmox.com Git - rustc.git/blob - src/libstd/Cargo.toml
New upstream version 1.37.0+dfsg1
[rustc.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.4.0", features = ['rustc-dep-of-std'] }
27
28 [dependencies.backtrace]
29 version = "0.3.29"
30 default-features = false # don't use coresymbolication on OSX
31 features = [
32 "rustc-dep-of-std", # enable build support for integrating into libstd
33 "dbghelp", # backtrace/symbolize on MSVC
34 "libbacktrace", # symbolize on most platforms
35 "libunwind", # backtrace on most platforms
36 "dladdr", # symbolize on platforms w/o libbacktrace
37 ]
38 optional = true
39
40 [dev-dependencies]
41 rand = "0.6.1"
42
43 [target.x86_64-apple-darwin.dependencies]
44 rustc_asan = { path = "../librustc_asan" }
45 rustc_tsan = { path = "../librustc_tsan" }
46
47 [target.x86_64-unknown-linux-gnu.dependencies]
48 rustc_asan = { path = "../librustc_asan" }
49 rustc_lsan = { path = "../librustc_lsan" }
50 rustc_msan = { path = "../librustc_msan" }
51 rustc_tsan = { path = "../librustc_tsan" }
52
53 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
54 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
55
56 [target.x86_64-fortanix-unknown-sgx.dependencies]
57 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
58
59 [build-dependencies]
60 cc = "1.0"
61
62 [features]
63 default = ["std_detect_file_io", "std_detect_dlsym_getauxval"]
64
65 panic-unwind = ["panic_unwind"]
66 profiler = ["profiler_builtins"]
67 compiler-builtins-c = ["alloc/compiler-builtins-c"]
68 llvm-libunwind = ["unwind/llvm-libunwind"]
69
70 # Make panics and failed asserts immediately abort without formatting any message
71 panic_immediate_abort = ["core/panic_immediate_abort"]
72
73 # An off-by-default feature which enables a linux-syscall-like ABI for libstd to
74 # interoperate with the host environment. Currently not well documented and
75 # requires rebuilding the standard library to use it.
76 wasm_syscall = []
77
78 # An off-by-default features to enable libstd to assume that wasm-bindgen is in
79 # the environment for hooking up some thread-related information like the
80 # current thread id and accessing/getting the current thread's TCB
81 wasm-bindgen-threads = []
82
83 # Enable std_detect default features for stdsimd:
84 # https://github.com/rust-lang-nursery/stdsimd/blob/master/crates/std_detect/Cargo.toml
85 std_detect_file_io = []
86 std_detect_dlsym_getauxval = []
87
88 [package.metadata.fortanix-sgx]
89 # Maximum possible number of threads when testing
90 threads = 125
91 # Maximum heap size
92 heap_size = 0x8000000