]> git.lizzy.rs Git - rust.git/blob - src/libstd/Cargo.toml
SGX target: fix std unit 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/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.44", default-features = false, features = ['rustc-dep-of-std'] }
22 compiler_builtins = { version = "0.1.1" }
23 profiler_builtins = { path = "../libprofiler_builtins", optional = true }
24 unwind = { path = "../libunwind" }
25 rustc-demangle = { version = "0.1.10", features = ['rustc-dep-of-std'] }
26 backtrace-sys = { version = "0.1.24", features = ["rustc-dep-of-std"], optional = true }
27
28 [dev-dependencies]
29 rand = "0.6.1"
30
31 [target.x86_64-apple-darwin.dependencies]
32 rustc_asan = { path = "../librustc_asan" }
33 rustc_tsan = { path = "../librustc_tsan" }
34
35 [target.x86_64-unknown-linux-gnu.dependencies]
36 rustc_asan = { path = "../librustc_asan" }
37 rustc_lsan = { path = "../librustc_lsan" }
38 rustc_msan = { path = "../librustc_msan" }
39 rustc_tsan = { path = "../librustc_tsan" }
40
41 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
42 dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
43
44 [target.x86_64-fortanix-unknown-sgx.dependencies]
45 fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
46
47 [build-dependencies]
48 cc = "1.0"
49
50 [features]
51 default = ["compiler_builtins_c", "std_detect_file_io", "std_detect_dlsym_getauxval"]
52
53 backtrace = ["backtrace-sys"]
54 panic-unwind = ["panic_unwind"]
55 profiler = ["profiler_builtins"]
56 compiler_builtins_c = ["compiler_builtins/c"]
57
58 # Make panics and failed asserts immediately abort without formatting any message
59 panic_immediate_abort = ["core/panic_immediate_abort"]
60
61 # An off-by-default feature which enables a linux-syscall-like ABI for libstd to
62 # interoperate with the host environment. Currently not well documented and
63 # requires rebuilding the standard library to use it.
64 wasm_syscall = []
65
66 # An off-by-default features to enable libstd to assume that wasm-bindgen is in
67 # the environment for hooking up some thread-related information like the
68 # current thread id and accessing/getting the current thread's TCB
69 wasm-bindgen-threads = []
70
71 # Enable std_detect default features for stdsimd:
72 # https://github.com/rust-lang-nursery/stdsimd/blob/master/crates/std_detect/Cargo.toml
73 std_detect_file_io = []
74 std_detect_dlsym_getauxval = []
75
76 [package.metadata.fortanix-sgx]
77 # Maximum possible number of threads when testing
78 threads = 125