Skip to content

Commit 1f02089

Browse files
committed
Mention feature="foo" is a Cargo convention.
1 parent 5de92b1 commit 1f02089

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/conditional-compilation.md

+5
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ configuration option from within the source code of the crate being compiled.
6464
> **Note**: For `rustc`, arbitrary-set configuration options are set using the
6565
> [`--cfg`] flag.
6666
67+
> **Note**: Configuration options with the key `feature` are a convention used
68+
> by [Cargo][cargo-feature] for specifying compile-time options and optional
69+
> dependencies.
70+
6771
<div class="warning">
6872

6973
Warning: It is possible for arbitrarily-set configuration options to have the
@@ -326,5 +330,6 @@ println!("I'm running on a {} machine!", machine_kind);
326330
[`target_feature` attribute]: attributes/codegen.md#the-target_feature-attribute
327331
[attribute]: attributes.md
328332
[attributes]: attributes.md
333+
[cargo-feature]: ../cargo/reference/features.html
329334
[crate type]: linkage.md
330335
[static C runtime]: linkage.md#static-and-dynamic-c-runtimes

0 commit comments

Comments
 (0)