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]
24cfg-if = "1.0.0"
25
26# When built as part of libstd
27core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
28compiler_builtins = { version = "0.1.2", optional = true }
29alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" }
30
31[target.'cfg(not(windows))'.dependencies]
32libc = { version = "0.2.0", optional = true, default-features = false }
33
34[dev-dependencies]
35cupid = "0.6.0"
36
37[features]
38default = [ "std_detect_dlsym_getauxval", "std_detect_file_io" ]
39std_detect_file_io = [ "libc" ]
40std_detect_dlsym_getauxval = [ "libc" ]
41std_detect_env_override = [ "libc" ]
42rustc-dep-of-std = [
43 "core",
44 "compiler_builtins",
45 "alloc",
46]
47