]> git.lizzy.rs Git - rust.git/blob - src/libstd/Cargo.toml
cae2f405318be7a6cc8284dd0a193257fac3148d
[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(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
39 dlmalloc = { path = '../rustc/dlmalloc_shim' }
40
41 [build-dependencies]
42 cc = "1.0"
43 build_helper = { path = "../build_helper" }
44
45 [features]
46 default = ["compiler_builtins_c"]
47
48 backtrace = []
49 panic-unwind = ["panic_unwind"]
50 profiler = ["profiler_builtins"]
51 compiler_builtins_c = ["compiler_builtins/c"]
52
53 # Make panics and failed asserts immediately abort without formatting any message
54 panic_immediate_abort = ["core/panic_immediate_abort"]
55
56 # An off-by-default feature which enables a linux-syscall-like ABI for libstd to
57 # interoperate with the host environment. Currently not well documented and
58 # requires rebuilding the standard library to use it.
59 wasm_syscall = []
60
61 # An off-by-default features to enable libstd to assume that wasm-bindgen is in
62 # the environment for hooking up some thread-related information like the
63 # current thread id and accessing/getting the current thread's TCB
64 wasm-bindgen-threads = []