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