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