]>
Commit | Line | Data |
---|---|---|
7453a54e SL |
1 | [package] |
2 | authors = ["The Rust Project Developers"] | |
3 | name = "std" | |
4 | version = "0.0.0" | |
5 | build = "build.rs" | |
abe05a73 XL |
6 | license = "MIT/Apache-2.0" |
7 | repository = "https://github.com/rust-lang/rust.git" | |
8 | description = "The Rust Standard Library" | |
7453a54e SL |
9 | |
10 | [lib] | |
11 | name = "std" | |
12 | path = "lib.rs" | |
13 | crate-type = ["dylib", "rlib"] | |
7453a54e SL |
14 | |
15 | [dependencies] | |
16 | alloc = { path = "../liballoc" } | |
17 | alloc_jemalloc = { path = "../liballoc_jemalloc", optional = true } | |
18 | alloc_system = { path = "../liballoc_system" } | |
476ff2be | 19 | panic_unwind = { path = "../libpanic_unwind", optional = true } |
a7813a04 | 20 | panic_abort = { path = "../libpanic_abort" } |
7453a54e SL |
21 | core = { path = "../libcore" } |
22 | libc = { path = "../rustc/libc_shim" } | |
041b39d2 XL |
23 | compiler_builtins = { path = "../rustc/compiler_builtins_shim" } |
24 | profiler_builtins = { path = "../libprofiler_builtins", optional = true } | |
a7813a04 | 25 | unwind = { path = "../libunwind" } |
7453a54e | 26 | |
abe05a73 | 27 | [dev-dependencies] |
b7449926 | 28 | rand = "0.5" |
abe05a73 | 29 | |
7cac9316 XL |
30 | [target.x86_64-apple-darwin.dependencies] |
31 | rustc_asan = { path = "../librustc_asan" } | |
32 | rustc_tsan = { path = "../librustc_tsan" } | |
33 | ||
8bb4bdeb XL |
34 | [target.x86_64-unknown-linux-gnu.dependencies] |
35 | rustc_asan = { path = "../librustc_asan" } | |
36 | rustc_lsan = { path = "../librustc_lsan" } | |
37 | rustc_msan = { path = "../librustc_msan" } | |
38 | rustc_tsan = { path = "../librustc_tsan" } | |
39 | ||
7453a54e | 40 | [build-dependencies] |
94b46f34 | 41 | cc = "1.0" |
7453a54e | 42 | build_helper = { path = "../build_helper" } |
7453a54e SL |
43 | |
44 | [features] | |
5bcae85e | 45 | backtrace = [] |
7453a54e | 46 | debug-jemalloc = ["alloc_jemalloc/debug"] |
476ff2be | 47 | jemalloc = ["alloc_jemalloc"] |
32a655c1 | 48 | force_alloc_system = [] |
476ff2be | 49 | panic-unwind = ["panic_unwind"] |
041b39d2 | 50 | profiler = ["profiler_builtins"] |
0bf4aa26 XL |
51 | |
52 | # An off-by-default feature which enables a linux-syscall-like ABI for libstd to | |
53 | # interoperate with the host environment. Currently not well documented and | |
54 | # requires rebuilding the standard library to use it. | |
2c00a5a8 | 55 | wasm_syscall = [] |
0bf4aa26 XL |
56 | |
57 | # An off-by-default features to enable libstd to assume that wasm-bindgen is in | |
58 | # the environment for hooking up some thread-related information like the | |
59 | # current thread id and accessing/getting the current thread's TCB | |
60 | wasm-bindgen-threads = [] |