mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
83 lines
2.7 KiB
TOML
83 lines
2.7 KiB
TOML
[package]
|
|
authors = ["The Rust Project Developers"]
|
|
name = "std"
|
|
version = "0.0.0"
|
|
build = "build.rs"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/rust-lang/rust.git"
|
|
description = "The Rust Standard Library"
|
|
edition = "2018"
|
|
|
|
[lib]
|
|
name = "std"
|
|
path = "lib.rs"
|
|
crate-type = ["dylib", "rlib"]
|
|
|
|
[dependencies]
|
|
alloc = { path = "../liballoc" }
|
|
cfg-if = { version = "0.1.8", features = ['rustc-dep-of-std'] }
|
|
panic_unwind = { path = "../libpanic_unwind", optional = true }
|
|
panic_abort = { path = "../libpanic_abort" }
|
|
core = { path = "../libcore" }
|
|
libc = { version = "0.2.51", default-features = false, features = ['rustc-dep-of-std'] }
|
|
compiler_builtins = { version = "0.1.16" }
|
|
profiler_builtins = { path = "../libprofiler_builtins", optional = true }
|
|
unwind = { path = "../libunwind" }
|
|
hashbrown = { version = "0.5.0", features = ['rustc-dep-of-std'] }
|
|
|
|
[dependencies.backtrace]
|
|
version = "0.3.37"
|
|
default-features = false # don't use coresymbolication on OSX
|
|
features = [
|
|
"rustc-dep-of-std", # enable build support for integrating into libstd
|
|
"dbghelp", # backtrace/symbolize on MSVC
|
|
"libbacktrace", # symbolize on most platforms
|
|
"libunwind", # backtrace on most platforms
|
|
"dladdr", # symbolize on platforms w/o libbacktrace
|
|
]
|
|
optional = true
|
|
|
|
[dev-dependencies]
|
|
rand = "0.6.1"
|
|
|
|
[target.x86_64-apple-darwin.dependencies]
|
|
rustc_asan = { path = "../librustc_asan" }
|
|
rustc_tsan = { path = "../librustc_tsan" }
|
|
|
|
[target.x86_64-unknown-linux-gnu.dependencies]
|
|
rustc_asan = { path = "../librustc_asan" }
|
|
rustc_lsan = { path = "../librustc_lsan" }
|
|
rustc_msan = { path = "../librustc_msan" }
|
|
rustc_tsan = { path = "../librustc_tsan" }
|
|
|
|
[target.'cfg(any(all(target_arch = "wasm32", not(target_os = "emscripten")), all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
|
|
dlmalloc = { version = "0.1", features = ['rustc-dep-of-std'] }
|
|
|
|
[target.x86_64-fortanix-unknown-sgx.dependencies]
|
|
fortanix-sgx-abi = { version = "0.3.2", features = ['rustc-dep-of-std'] }
|
|
|
|
[build-dependencies]
|
|
cc = "1.0"
|
|
|
|
[features]
|
|
default = ["std_detect_file_io", "std_detect_dlsym_getauxval"]
|
|
|
|
panic-unwind = ["panic_unwind"]
|
|
profiler = ["profiler_builtins"]
|
|
compiler-builtins-c = ["alloc/compiler-builtins-c"]
|
|
llvm-libunwind = ["unwind/llvm-libunwind"]
|
|
|
|
# Make panics and failed asserts immediately abort without formatting any message
|
|
panic_immediate_abort = ["core/panic_immediate_abort"]
|
|
|
|
# Enable std_detect default features for stdarch/crates/std_detect:
|
|
# https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
|
|
std_detect_file_io = []
|
|
std_detect_dlsym_getauxval = []
|
|
|
|
[package.metadata.fortanix-sgx]
|
|
# Maximum possible number of threads when testing
|
|
threads = 125
|
|
# Maximum heap size
|
|
heap_size = 0x8000000
|