We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5ff71d + 2325d95 commit 3c55838Copy full SHA for 3c55838
src/conditional-compilation.md
@@ -191,6 +191,25 @@ Example values:
191
* `"pc"`
192
* `"unknown"`
193
194
+### `target_has_atomic`
195
+
196
+Key-value option set for each bit width that the target supports
197
+atomic loads, stores, and compare-and-swap operations.
198
199
+When this cfg is present, all of the stable [`core::sync::atomic`] APIs are available for
200
+the relevant atomic width.
201
202
+[`core::sync::atomic`]: ../core/sync/atomic/index.html
203
204
+Possible values:
205
206
+* `"8"`
207
+* `"16"`
208
+* `"32"`
209
+* `"64"`
210
+* `"128"`
211
+* `"ptr"`
212
213
### `test`
214
215
Enabled when compiling the test harness. Done with `rustc` by using the
0 commit comments