]>
Commit | Line | Data |
---|---|---|
7453a54e SL |
1 | [package] |
2 | authors = ["The Rust Project Developers"] | |
3 | name = "std" | |
4 | version = "0.0.0" | |
48663c56 | 5 | license = "MIT OR Apache-2.0" |
abe05a73 XL |
6 | repository = "https://github.com/rust-lang/rust.git" |
7 | description = "The Rust Standard Library" | |
532ac7d7 | 8 | edition = "2018" |
7453a54e SL |
9 | |
10 | [lib] | |
7453a54e | 11 | crate-type = ["dylib", "rlib"] |
7453a54e SL |
12 | |
13 | [dependencies] | |
3dfed10e | 14 | alloc = { path = "../alloc" } |
dc9dc135 | 15 | cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] } |
3dfed10e XL |
16 | panic_unwind = { path = "../panic_unwind", optional = true } |
17 | panic_abort = { path = "../panic_abort" } | |
18 | core = { path = "../core" } | |
6a06907d | 19 | libc = { version = "0.2.88", default-features = false, features = ['rustc-dep-of-std'] } |
5869c6ff | 20 | compiler_builtins = { version = "0.1.39" } |
3dfed10e XL |
21 | profiler_builtins = { path = "../profiler_builtins", optional = true } |
22 | unwind = { path = "../unwind" } | |
6a06907d | 23 | hashbrown = { version = "0.11", default-features = false, features = ['rustc-dep-of-std'] } |
e1599b0c | 24 | |
3dfed10e | 25 | # Dependencies of the `backtrace` crate |
fc512014 | 26 | addr2line = { version = "0.14.0", optional = true, default-features = false } |
29967ef6 | 27 | rustc-demangle = { version = "0.1.18", features = ['rustc-dep-of-std'] } |
3dfed10e XL |
28 | miniz_oxide = { version = "0.4.0", optional = true, default-features = false } |
29 | [dependencies.object] | |
fc512014 | 30 | version = "0.22" |
3dfed10e XL |
31 | optional = true |
32 | default-features = false | |
fc512014 | 33 | features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive'] |
7453a54e | 34 | |
abe05a73 | 35 | [dev-dependencies] |
e1599b0c | 36 | rand = "0.7" |
abe05a73 | 37 | |
0731742a | 38 | [target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies] |
fc512014 | 39 | dlmalloc = { version = "0.2.1", features = ['rustc-dep-of-std'] } |
0731742a XL |
40 | |
41 | [target.x86_64-fortanix-unknown-sgx.dependencies] | |
42 | fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] } | |
a1dfa0c6 | 43 | |
e74abb32 | 44 | [target.'cfg(all(any(target_arch = "x86_64", target_arch = "aarch64"), target_os = "hermit"))'.dependencies] |
29967ef6 | 45 | hermit-abi = { version = "0.1.17", features = ['rustc-dep-of-std'] } |
e74abb32 | 46 | |
e1599b0c | 47 | [target.wasm32-wasi.dependencies] |
60c5eb7d | 48 | wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false } |
e1599b0c | 49 | |
7453a54e | 50 | [features] |
e1599b0c | 51 | backtrace = [ |
3dfed10e XL |
52 | "gimli-symbolize", |
53 | 'addr2line/rustc-dep-of-std', | |
54 | 'object/rustc-dep-of-std', | |
55 | 'miniz_oxide/rustc-dep-of-std', | |
e1599b0c | 56 | ] |
3dfed10e | 57 | gimli-symbolize = [] |
e1599b0c | 58 | |
476ff2be | 59 | panic-unwind = ["panic_unwind"] |
041b39d2 | 60 | profiler = ["profiler_builtins"] |
dc9dc135 | 61 | compiler-builtins-c = ["alloc/compiler-builtins-c"] |
1b1a35ee | 62 | compiler-builtins-mem = ["alloc/compiler-builtins-mem"] |
5869c6ff | 63 | compiler-builtins-no-asm = ["alloc/compiler-builtins-no-asm"] |
fc512014 | 64 | compiler-builtins-mangled-names = ["alloc/compiler-builtins-mangled-names"] |
532ac7d7 | 65 | llvm-libunwind = ["unwind/llvm-libunwind"] |
29967ef6 | 66 | system-llvm-libunwind = ["unwind/system-llvm-libunwind"] |
a1dfa0c6 XL |
67 | |
68 | # Make panics and failed asserts immediately abort without formatting any message | |
69 | panic_immediate_abort = ["core/panic_immediate_abort"] | |
0bf4aa26 | 70 | |
416331ca XL |
71 | # Enable std_detect default features for stdarch/crates/std_detect: |
72 | # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml | |
9fa01778 XL |
73 | std_detect_file_io = [] |
74 | std_detect_dlsym_getauxval = [] | |
532ac7d7 XL |
75 | |
76 | [package.metadata.fortanix-sgx] | |
77 | # Maximum possible number of threads when testing | |
78 | threads = 125 | |
dc9dc135 XL |
79 | # Maximum heap size |
80 | heap_size = 0x8000000 | |
f035d41b XL |
81 | |
82 | [[bench]] | |
83 | name = "stdbenches" | |
84 | path = "benches/lib.rs" | |
85 | test = true |