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