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