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