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 = "2021" |
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 = "1.0.0" |
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 | cupid = "0.6.0" |
34 | |
35 | [features] |
36 | default = [ "std_detect_dlsym_getauxval" , "std_detect_file_io" ] |
37 | std_detect_file_io = [ "libc" ] |
38 | std_detect_dlsym_getauxval = [ "libc" ] |
39 | std_detect_env_override = [ "libc" ] |
40 | rustc-dep-of-std = [ |
41 | "core" , |
42 | "compiler_builtins" , |
43 | "alloc" , |
44 | ] |
45 | |