]> git.lizzy.rs Git - rust.git/blob - src/libstd/Cargo.toml
Add x86_64-fortanix-unknown-sgx target to libstd and dependencies
[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
10 [lib]
11 name = "std"
12 path = "lib.rs"
13 crate-type = ["dylib", "rlib"]
14
15 [dependencies]
16 alloc = { path = "../liballoc" }
17 panic_unwind = { path = "../libpanic_unwind", optional = true }
18 panic_abort = { path = "../libpanic_abort" }
19 core = { path = "../libcore" }
20 libc = { path = "../rustc/libc_shim" }
21 compiler_builtins = { path = "../rustc/compiler_builtins_shim" }
22 profiler_builtins = { path = "../libprofiler_builtins", optional = true }
23 unwind = { path = "../libunwind" }
24
25 [dev-dependencies]
26 rand = "0.5"
27
28 [target.x86_64-apple-darwin.dependencies]
29 rustc_asan = { path = "../librustc_asan" }
30 rustc_tsan = { path = "../librustc_tsan" }
31
32 [target.x86_64-unknown-linux-gnu.dependencies]
33 rustc_asan = { path = "../librustc_asan" }
34 rustc_lsan = { path = "../librustc_lsan" }
35 rustc_msan = { path = "../librustc_msan" }
36 rustc_tsan = { path = "../librustc_tsan" }
37
38 [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), target_env = "sgx"))'.dependencies]
39 dlmalloc = { path = '../rustc/dlmalloc_shim' }
40
41 [target.x86_64-fortanix-unknown-sgx.dependencies]
42 fortanix-sgx-abi = { path = "../rustc/fortanix-sgx-abi_shim" }
43
44 [build-dependencies]
45 cc = "1.0"
46 build_helper = { path = "../build_helper" }
47
48 [features]
49 default = ["compiler_builtins_c"]
50
51 backtrace = []
52 panic-unwind = ["panic_unwind"]
53 profiler = ["profiler_builtins"]
54 compiler_builtins_c = ["compiler_builtins/c"]
55
56 # Make panics and failed asserts immediately abort without formatting any message
57 panic_immediate_abort = ["core/panic_immediate_abort"]
58
59 # An off-by-default feature which enables a linux-syscall-like ABI for libstd to
60 # interoperate with the host environment. Currently not well documented and
61 # requires rebuilding the standard library to use it.
62 wasm_syscall = []
63
64 # An off-by-default features to enable libstd to assume that wasm-bindgen is in
65 # the environment for hooking up some thread-related information like the
66 # current thread id and accessing/getting the current thread's TCB
67 wasm-bindgen-threads = []