]> git.proxmox.com Git - rustc.git/blob - library/stdarch/crates/std_detect/Cargo.toml
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / library / stdarch / crates / std_detect / Cargo.toml
1 [package]
2 name = "std_detect"
3 version = "0.1.5"
4 authors = [
5 "Alex Crichton <alex@alexcrichton.com>",
6 "Andrew Gallant <jamslam@gmail.com>",
7 "Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",
8 ]
9 description = "`std::detect` - Rust's standard library run-time CPU feature detection."
10 homepage = "https://github.com/rust-lang/stdarch"
11 repository = "https://github.com/rust-lang/stdarch"
12 readme = "README.md"
13 keywords = ["std", "run-time", "feature", "detection"]
14 categories = ["hardware-support"]
15 license = "MIT/Apache-2.0"
16 edition = "2018"
17
18 [badges]
19 is-it-maintained-issue-resolution = { repository = "rust-lang/stdarch" }
20 is-it-maintained-open-issues = { repository = "rust-lang/stdarch" }
21 maintenance = { status = "experimental" }
22
23 [dependencies]
24 libc = { version = "0.2", optional = true, default-features = false }
25 cfg-if = "0.1.10"
26
27 # When built as part of libstd
28 core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
29 compiler_builtins = { version = "0.1.2", optional = true }
30 alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" }
31
32 [dev-dependencies]
33 auxv = "0.3.3"
34 cupid = "0.6.0"
35
36 [features]
37 default = [ "std_detect_dlsym_getauxval", "std_detect_file_io" ]
38 std_detect_file_io = [ "libc" ]
39 std_detect_dlsym_getauxval = [ "libc" ]
40 std_detect_env_override = [ "libc" ]
41 rustc-dep-of-std = [
42 "core",
43 "compiler_builtins",
44 "alloc",
45 ]