2
2
3
3
r[ cfg]
4
4
5
-
6
5
r[ cfg.syntax]
7
6
> ** <sup >Syntax</sup >** \
8
7
> _ ConfigurationPredicate_ :\
@@ -69,7 +68,6 @@ Keys do not need to be unique. For example, both `feature = "std"` and `feature
69
68
70
69
r[ cfg.options.set]
71
70
72
-
73
71
r[ cfg.options.general]
74
72
Which configuration options are set is determined statically during the
75
73
compilation of the crate.
@@ -98,7 +96,6 @@ configuration option from within the source code of the crate being compiled.
98
96
99
97
r[ cfg.target_arch]
100
98
101
-
102
99
r[ cfg.target_arch.gen]
103
100
Key-value option set once with the target's CPU architecture. The value is
104
101
similar to the first element of the platform's target triple, but not
@@ -119,7 +116,6 @@ Example values:
119
116
120
117
r[ cfg.target_feature]
121
118
122
-
123
119
r[ cfg.target_feature.general]
124
120
Key-value option set for each platform feature available for the current
125
121
compilation target.
@@ -146,7 +142,6 @@ An additional feature of `crt-static` is available to the
146
142
147
143
r[ cfg.target_os]
148
144
149
-
150
145
r[ cfg.target_os.general]
151
146
Key-value option set once with the target's operating system. This value is
152
147
similar to the second and third element of the platform's target triple.
@@ -169,7 +164,6 @@ Example values:
169
164
170
165
r[ cfg.target_family]
171
166
172
-
173
167
r[ cfg.target_family.general]
174
168
Key-value option providing a more generic description of a target, such as the family of the
175
169
operating systems or architectures that the target generally falls into. Any number of
@@ -217,7 +211,6 @@ Example values:
217
211
218
212
r[ cfg.target_abi]
219
213
220
-
221
214
r[ cfg.target_abi.general]
222
215
Key-value option set to further disambiguate the ` target_env ` with information
223
216
about the target ABI.
@@ -247,7 +240,6 @@ on the endianness of the target's CPU.
247
240
248
241
r[ cfg.target_poitner_width]
249
242
250
-
251
243
r[ cfg.target_pointer_width.general]
252
244
Key-value option set once with the target's pointer width in bits.
253
245
@@ -262,7 +254,6 @@ Example values:
262
254
263
255
r[ cfg.target_vendor]
264
256
265
-
266
257
r[ cfg.target_vendor.general]
267
258
Key-value option set once with the vendor of the target.
268
259
@@ -278,7 +269,6 @@ Example values:
278
269
279
270
r[ cfg.target_has_atomic]
280
271
281
-
282
272
r[ cfg.target_has_atomic.general]
283
273
Key-value option set for each bit width that the target supports
284
274
atomic loads, stores, and compare-and-swap operations.
@@ -325,7 +315,6 @@ Set when the crate being compiled is being compiled with the `proc_macro`
325
315
326
316
r[ cfg.panic]
327
317
328
-
329
318
r[ cfg.panic.general]
330
319
Key-value option set depending on the panic strategy. Note that more values may be added in the future.
331
320
@@ -341,7 +330,6 @@ Example values:
341
330
342
331
r[ cfg.attr]
343
332
344
-
345
333
r[ cfg.attr.syntax]
346
334
> ** <sup >Syntax</sup >** \
347
335
> _ CfgAttrAttribute_ :\
@@ -410,7 +398,6 @@ The `cfg` attribute is allowed anywhere attributes are allowed.
410
398
411
399
r[ cfg.cfg_attr]
412
400
413
-
414
401
r[ cfg.cfg_attr.syntax]
415
402
> ** <sup >Syntax</sup >** \
416
403
> _ CfgAttrAttribute_ :\
@@ -419,7 +406,6 @@ r[cfg.cfg_attr.syntax]
419
406
> _ CfgAttrs_ :\
420
407
>   ;  ; [ _ Attr_ ]   ; (` , ` [ _ Attr_ ] )<sup >\* </sup > ` , ` <sup >?</sup >
421
408
422
-
423
409
r[ cfg.cfg_attr.general]
424
410
The ` cfg_attr ` [ attribute] conditionally includes [ attributes] based on a
425
411
configuration predicate.
0 commit comments