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.
@@ -101,7 +99,6 @@ Warning: Arbitrarily-set configuration options can clash with compiler-set confi
101
99
102
100
r[ cfg.target_arch]
103
101
104
-
105
102
r[ cfg.target_arch.gen]
106
103
Key-value option set once with the target's CPU architecture. The value is
107
104
similar to the first element of the platform's target triple, but not
@@ -122,7 +119,6 @@ Example values:
122
119
123
120
r[ cfg.target_feature]
124
121
125
-
126
122
r[ cfg.target_feature.general]
127
123
Key-value option set for each platform feature available for the current
128
124
compilation target.
@@ -149,7 +145,6 @@ An additional feature of `crt-static` is available to the
149
145
150
146
r[ cfg.target_os]
151
147
152
-
153
148
r[ cfg.target_os.general]
154
149
Key-value option set once with the target's operating system. This value is
155
150
similar to the second and third element of the platform's target triple.
@@ -172,7 +167,6 @@ Example values:
172
167
173
168
r[ cfg.target_family]
174
169
175
-
176
170
r[ cfg.target_family.general]
177
171
Key-value option providing a more generic description of a target, such as the family of the
178
172
operating systems or architectures that the target generally falls into. Any number of
@@ -220,7 +214,6 @@ Example values:
220
214
221
215
r[ cfg.target_abi]
222
216
223
-
224
217
r[ cfg.target_abi.general]
225
218
Key-value option set to further disambiguate the ` target_env ` with information
226
219
about the target ABI.
@@ -250,7 +243,6 @@ on the endianness of the target's CPU.
250
243
251
244
r[ cfg.target_poitner_width]
252
245
253
-
254
246
r[ cfg.target_pointer_width.general]
255
247
Key-value option set once with the target's pointer width in bits.
256
248
@@ -265,7 +257,6 @@ Example values:
265
257
266
258
r[ cfg.target_vendor]
267
259
268
-
269
260
r[ cfg.target_vendor.general]
270
261
Key-value option set once with the vendor of the target.
271
262
@@ -281,7 +272,6 @@ Example values:
281
272
282
273
r[ cfg.target_has_atomic]
283
274
284
-
285
275
r[ cfg.target_has_atomic.general]
286
276
Key-value option set for each bit width that the target supports
287
277
atomic loads, stores, and compare-and-swap operations.
@@ -329,7 +319,6 @@ Set when the crate being compiled is being compiled with the `proc_macro`
329
319
330
320
r[ cfg.panic]
331
321
332
-
333
322
r[ cfg.panic.general]
334
323
Key-value option set depending on the panic strategy. Note that more values may be added in the future.
335
324
@@ -345,7 +334,6 @@ Example values:
345
334
346
335
r[ cfg.attr]
347
336
348
-
349
337
r[ cfg.attr.syntax]
350
338
> ** <sup >Syntax</sup >** \
351
339
> _ CfgAttrAttribute_ :\
@@ -414,7 +402,6 @@ The `cfg` attribute is allowed anywhere attributes are allowed.
414
402
415
403
r[ cfg.cfg_attr]
416
404
417
-
418
405
r[ cfg.cfg_attr.syntax]
419
406
> ** <sup >Syntax</sup >** \
420
407
> _ CfgAttrAttribute_ :\
@@ -423,7 +410,6 @@ r[cfg.cfg_attr.syntax]
423
410
> _ CfgAttrs_ :\
424
411
>   ;  ; [ _ Attr_ ]   ; (` , ` [ _ Attr_ ] )<sup >\* </sup > ` , ` <sup >?</sup >
425
412
426
-
427
413
r[ cfg.cfg_attr.general]
428
414
The ` cfg_attr ` [ attribute] conditionally includes [ attributes] based on a
429
415
configuration predicate.
0 commit comments