Debian Codegraph @

debian/rust-vendor/cpufeatures/Cargo.toml

raw
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2 #
3 # When uploading crates to the registry Cargo will automatically
4 # "normalize" Cargo.toml files for maximal compatibility
5 # with all versions of Cargo and also rewrite `path` dependencies
6 # to registry (e.g., crates.io) dependencies.
7 #
8 # If you are reading this file be aware that the original Cargo.toml
9 # will likely look very different (and much more reasonable).
10 # See Cargo.toml.orig for the original contents.
11
12 [package]
13 edition = "2024"
14 rust-version = "1.85"
15 name = "cpufeatures"
16 version = "0.3.1"
17 authors = ["RustCrypto Developers"]
18 build = false
19 autolib = false
20 autobins = false
21 autoexamples = false
22 autotests = false
23 autobenches = false
24 description = """
25 Lightweight runtime CPU feature detection for aarch64, loongarch64, and x86/x86_64 targets,
26 with no_std support and support for mobile targets including Android and iOS
27 """
28 documentation = "https://docs.rs/cpufeatures"
29 readme = "README.md"
30 keywords = [
31 "cpuid",
32 "target-feature",
33 ]
34 categories = [
35 "hardware-support",
36 "no-std",
37 ]
38 license = "MIT OR Apache-2.0"
39 repository = "https://github.com/RustCrypto/utils"
40
41 [lib]
42 name = "cpufeatures"
43 path = "src/lib.rs"
44
45 [[test]]
46 name = "aarch64"
47 path = "tests/aarch64.rs"
48
49 [[test]]
50 name = "loongarch64"
51 path = "tests/loongarch64.rs"
52
53 [[test]]
54 name = "x86"
55 path = "tests/x86.rs"
56
57 [target.'cfg(all(target_arch = "aarch64", target_os = "android"))'.dependencies.libc]
58 version = "0.2.155"
59 default-features = false
60
61 [target.'cfg(all(target_arch = "aarch64", target_os = "linux"))'.dependencies.libc]
62 version = "0.2.155"
63 default-features = false
64
65 [target.'cfg(all(target_arch = "aarch64", target_vendor = "apple"))'.dependencies.libc]
66 version = "0.2.155"
67 default-features = false
68
69 [target.'cfg(all(target_arch = "loongarch64", target_os = "linux"))'.dependencies.libc]
70 version = "0.2.155"
71 default-features = false
72
73 [lints.clippy]
74 borrow_as_ptr = "warn"
75 cast_lossless = "warn"
76 cast_possible_truncation = "warn"
77 cast_possible_wrap = "warn"
78 cast_precision_loss = "warn"
79 cast_sign_loss = "warn"
80 checked_conversions = "warn"
81 doc_markdown = "warn"
82 from_iter_instead_of_collect = "warn"
83 implicit_saturating_sub = "warn"
84 manual_assert = "warn"
85 map_unwrap_or = "warn"
86 missing_errors_doc = "warn"
87 missing_panics_doc = "warn"
88 mod_module_files = "warn"
89 must_use_candidate = "warn"
90 needless_range_loop = "allow"
91 ptr_as_ptr = "warn"
92 redundant_closure_for_method_calls = "warn"
93 ref_as_ptr = "warn"
94 return_self_not_must_use = "warn"
95 semicolon_if_nothing_returned = "warn"
96 std_instead_of_alloc = "warn"
97 std_instead_of_core = "warn"
98 trivially_copy_pass_by_ref = "warn"
99 undocumented_unsafe_blocks = "warn"
100 unnecessary_safety_comment = "warn"
101 unwrap_in_result = "warn"
102 unwrap_used = "warn"
103
104 [lints.rust]
105 missing_copy_implementations = "warn"
106 missing_debug_implementations = "warn"
107 missing_docs = "warn"
108 trivial_casts = "warn"
109 trivial_numeric_casts = "warn"
110 unused_lifetimes = "warn"
111 unused_qualifications = "warn"