Debian Codegraph @

debian/rust-vendor/portable-atomic/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 = "2018"
14 rust-version = "1.34"
15 name = "portable-atomic"
16 version = "1.15.0"
17 build = "build.rs"
18 exclude = [
19 "/.*",
20 "/tools",
21 "/target-specs",
22 "/DEVELOPMENT.md",
23 ]
24 autolib = false
25 autobins = false
26 autoexamples = false
27 autotests = false
28 autobenches = false
29 description = """
30 Portable atomic types including support for 128-bit atomics, atomic float, etc.
31 """
32 readme = "README.md"
33 keywords = ["atomic"]
34 categories = [
35 "concurrency",
36 "embedded",
37 "hardware-support",
38 "no-std",
39 "no-std::no-alloc",
40 ]
41 license = "Apache-2.0 OR MIT"
42 repository = "https://github.com/taiki-e/portable-atomic"
43
44 [package.metadata.docs.rs]
45 features = [
46 "float",
47 "std",
48 "serde",
49 "critical-section",
50 ]
51 rustdoc-args = [
52 "--extend-css",
53 "src/rustdoc.css",
54 "--cfg",
55 "portable_atomic_unstable_f16",
56 "--cfg",
57 "portable_atomic_unstable_f128",
58 ]
59 targets = ["x86_64-unknown-linux-gnu"]
60
61 [package.metadata.cargo_check_external_types]
62 allowed_external_types = ["serde_core::*"]
63
64 [features]
65 default = ["fallback"]
66 disable-fiq = []
67 fallback = []
68 float = []
69 force-amo = []
70 require-cas = []
71 s-mode = []
72 std = []
73 unsafe-assume-privileged = []
74 unsafe-assume-single-core = []
75
76 [lib]
77 name = "portable_atomic"
78 path = "src/lib.rs"
79 doc-scrape-examples = false
80
81 [dependencies.critical-section]
82 version = "1"
83 optional = true
84
85 [dependencies.serde]
86 version = "1.0.60"
87 optional = true
88 default-features = false
89
90 [dev-dependencies.build-context]
91 version = "0.1"
92
93 [dev-dependencies.crossbeam-utils]
94 version = "0.8"
95
96 [dev-dependencies.fastrand]
97 version = "2"
98
99 [dev-dependencies.paste]
100 version = "1"
101
102 [dev-dependencies.quickcheck]
103 version = "1"
104 default-features = false
105
106 [dev-dependencies.rustversion]
107 version = "1"
108
109 [dev-dependencies.sptr]
110 version = "0.3"
111
112 [dev-dependencies.static_assertions]
113 version = "1"
114
115 [target."cfg(unix)".dev-dependencies.libc]
116 version = "=0.2.163"
117
118 [target."cfg(windows)".dev-dependencies.windows-sys]
119 version = "0.61"
120 features = [
121 "Win32_Foundation",
122 "Win32_System_Threading",
123 ]
124
125 [lints.clippy]
126 all = "warn"
127 as_ptr_cast_mut = "warn"
128 as_underscore = "warn"
129 default_union_representation = "warn"
130 inline_asm_x86_att_syntax = "warn"
131 pedantic = "warn"
132 trailing_empty_array = "warn"
133 transmute_undefined_repr = "warn"
134 undocumented_unsafe_blocks = "warn"
135 unused_trait_names = "warn"
136
137 [lints.clippy.assert_is_empty]
138 level = "allow"
139 priority = 1
140
141 [lints.clippy.bool_assert_comparison]
142 level = "allow"
143 priority = 1
144
145 [lints.clippy.borrow_as_ptr]
146 level = "allow"
147 priority = 1
148
149 [lints.clippy.cast_lossless]
150 level = "allow"
151 priority = 1
152
153 [lints.clippy.collapsible_match]
154 level = "allow"
155 priority = 1
156
157 [lints.clippy.declare_interior_mutable_const]
158 level = "allow"
159 priority = 1
160
161 [lints.clippy.doc_markdown]
162 level = "allow"
163 priority = 1
164
165 [lints.clippy.float_cmp]
166 level = "allow"
167 priority = 1
168
169 [lints.clippy.incompatible_msrv]
170 level = "allow"
171 priority = 1
172
173 [lints.clippy.manual_assert]
174 level = "allow"
175 priority = 1
176
177 [lints.clippy.manual_range_contains]
178 level = "allow"
179 priority = 1
180
181 [lints.clippy.missing_errors_doc]
182 level = "allow"
183 priority = 1
184
185 [lints.clippy.module_name_repetitions]
186 level = "allow"
187 priority = 1
188
189 [lints.clippy.naive_bytecount]
190 level = "allow"
191 priority = 1
192
193 [lints.clippy.nonminimal_bool]
194 level = "allow"
195 priority = 1
196
197 [lints.clippy.range_plus_one]
198 level = "allow"
199 priority = 1
200
201 [lints.clippy.similar_names]
202 level = "allow"
203 priority = 1
204
205 [lints.clippy.single_match]
206 level = "allow"
207 priority = 1
208
209 [lints.clippy.single_match_else]
210 level = "allow"
211 priority = 1
212
213 [lints.clippy.struct_excessive_bools]
214 level = "allow"
215 priority = 1
216
217 [lints.clippy.struct_field_names]
218 level = "allow"
219 priority = 1
220
221 [lints.clippy.too_many_arguments]
222 level = "allow"
223 priority = 1
224
225 [lints.clippy.too_many_lines]
226 level = "allow"
227 priority = 1
228
229 [lints.clippy.type_complexity]
230 level = "allow"
231 priority = 1
232
233 [lints.rust]
234 deprecated_safe = "warn"
235 improper_ctypes = "warn"
236 improper_ctypes_definitions = "warn"
237 non_ascii_idents = "warn"
238 rust_2018_idioms = "warn"
239 single_use_lifetimes = "warn"
240 unnameable_types = "warn"
241 unreachable_pub = "warn"
242
243 [lints.rust.unexpected_cfgs]
244 level = "warn"
245 priority = 0
246 check-cfg = [
247 'cfg(target_arch,values("xtensa"))',
248 'cfg(target_arch,values("amdgpu"))',
249 'cfg(target_arch,values("loongarch32"))',
250 'cfg(target_os,values("trusty"))',
251 'cfg(target_os,values("psx"))',
252 'cfg(target_os,values("zos"))',
253 'cfg(target_env,values("psx"))',
254 'cfg(target_feature,values("lse2","lse128","rcpc3"))',
255 'cfg(target_feature,values("quadword-atomics"))',
256 'cfg(target_feature,values("zaamo","zabha"))',
257 'cfg(target_feature,values("zacas"))',
258 'cfg(target_feature,values("ztso"))',
259 'cfg(target_feature,values("miscellaneous-extensions-3"))',
260 'cfg(target_pointer_width,values("128"))',
261 "cfg(portable_atomic_no_outline_atomics,portable_atomic_outline_atomics,portable_atomic_unstable_f16,portable_atomic_unstable_f128)",
262 "cfg(portable_atomic_test_detect_false,portable_atomic_test_no_std_static_assert_ffi,qemu,valgrind,valgrind_cross)",
263 ]
264
265 [profile.release]
266 debug = 2