1 | cargo-features = ["public-dependency" ] |
2 | |
3 | [package] |
4 | name = "std" |
5 | version = "0.0.0" |
6 | license = "MIT OR Apache-2.0" |
7 | repository = "https://github.com/rust-lang/rust.git" |
8 | description = "The Rust Standard Library" |
9 | edition = "2021" |
10 | |
11 | [lib] |
12 | crate-type = ["dylib" , "rlib" ] |
13 | |
14 | [dependencies] |
15 | alloc = { path = "../alloc" , public = true } |
16 | cfg-if = { version = "1.0" , features = ['rustc-dep-of-std' ] } |
17 | panic_unwind = { path = "../panic_unwind" , optional = true } |
18 | panic_abort = { path = "../panic_abort" } |
19 | core = { path = "../core" , public = true } |
20 | compiler_builtins = { version = "0.1.105" } |
21 | profiler_builtins = { path = "../profiler_builtins" , optional = true } |
22 | unwind = { path = "../unwind" } |
23 | hashbrown = { version = "0.14" , default-features = false, features = ['rustc-dep-of-std' ] } |
24 | std_detect = { path = "../stdarch/crates/std_detect" , default-features = false, features = ['rustc-dep-of-std' ] } |
25 | |
26 | # Dependencies of the `backtrace` crate |
27 | rustc-demangle = { version = "0.1.21" , features = ['rustc-dep-of-std' ] } |
28 | |
29 | [target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies] |
30 | miniz_oxide = { version = "0.7.0" , optional = true, default-features = false } |
31 | addr2line = { version = "0.21.0" , optional = true, default-features = false } |
32 | |
33 | [target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies] |
34 | libc = { version = "0.2.153" , default-features = false, features = ['rustc-dep-of-std' ], public = true } |
35 | |
36 | [target.'cfg(all(windows, target_env = "msvc"))'.dependencies] |
37 | libc = { version = "0.2.153" , default-features = false } |
38 | |
39 | [target.'cfg(all(not(target_os = "aix"), not(all(windows, target_env = "msvc", not(target_vendor = "uwp")))))'.dependencies] |
40 | object = { version = "0.32.0" , default-features = false, optional = true, features = ['read_core' , 'elf' , 'macho' , 'pe' , 'unaligned' , 'archive' ] } |
41 | |
42 | [target.'cfg(target_os = "aix")'.dependencies] |
43 | object = { version = "0.32.0" , default-features = false, optional = true, features = ['read_core' , 'xcoff' , 'unaligned' , 'archive' ] } |
44 | |
45 | [dev-dependencies] |
46 | rand = { version = "0.8.5" , default-features = false, features = ["alloc" ] } |
47 | rand_xorshift = "0.3.0" |
48 | |
49 | [target.'cfg(any(all(target_family = "wasm", target_os = "unknown"), target_os = "xous", all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies] |
50 | dlmalloc = { version = "0.2.4" , features = ['rustc-dep-of-std' ] } |
51 | |
52 | [target.x86_64-fortanix-unknown-sgx.dependencies] |
53 | fortanix-sgx-abi = { version = "0.5.0" , features = ['rustc-dep-of-std' ], public = true } |
54 | |
55 | [target.'cfg(target_os = "hermit")'.dependencies] |
56 | hermit-abi = { version = "0.3.9" , features = ['rustc-dep-of-std' ], public = true } |
57 | |
58 | [target.'cfg(target_os = "wasi")'.dependencies] |
59 | wasi = { version = "0.11.0" , features = ['rustc-dep-of-std' ], default-features = false } |
60 | |
61 | [target.'cfg(target_os = "uefi")'.dependencies] |
62 | r-efi = { version = "4.2.0" , features = ['rustc-dep-of-std' ] } |
63 | r-efi-alloc = { version = "1.0.0" , features = ['rustc-dep-of-std' ] } |
64 | |
65 | [features] |
66 | backtrace = [ |
67 | "gimli-symbolize" , |
68 | 'addr2line/rustc-dep-of-std' , |
69 | 'object/rustc-dep-of-std' , |
70 | 'miniz_oxide/rustc-dep-of-std' , |
71 | ] |
72 | gimli-symbolize = [] |
73 | |
74 | panic-unwind = ["panic_unwind" ] |
75 | profiler = ["profiler_builtins" ] |
76 | compiler-builtins-c = ["alloc/compiler-builtins-c" ] |
77 | compiler-builtins-mem = ["alloc/compiler-builtins-mem" ] |
78 | compiler-builtins-no-asm = ["alloc/compiler-builtins-no-asm" ] |
79 | compiler-builtins-mangled-names = ["alloc/compiler-builtins-mangled-names" ] |
80 | compiler-builtins-weak-intrinsics = ["alloc/compiler-builtins-weak-intrinsics" ] |
81 | llvm-libunwind = ["unwind/llvm-libunwind" ] |
82 | system-llvm-libunwind = ["unwind/system-llvm-libunwind" ] |
83 | |
84 | # Make panics and failed asserts immediately abort without formatting any message |
85 | panic_immediate_abort = ["core/panic_immediate_abort" , "alloc/panic_immediate_abort" ] |
86 | |
87 | # Enable std_detect default features for stdarch/crates/std_detect: |
88 | # https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml |
89 | std_detect_file_io = ["std_detect/std_detect_file_io" ] |
90 | std_detect_dlsym_getauxval = ["std_detect/std_detect_dlsym_getauxval" ] |
91 | std_detect_env_override = ["std_detect/std_detect_env_override" ] |
92 | |
93 | [package.metadata.fortanix-sgx] |
94 | # Maximum possible number of threads when testing |
95 | threads = 125 |
96 | # Maximum heap size |
97 | heap_size = 0x8000000 |
98 | |
99 | [[bench]] |
100 | name = "stdbenches" |
101 | path = "benches/lib.rs" |
102 | test = true |
103 | |