We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32a6373 commit dd8151fCopy full SHA for dd8151f
src/doc/book/conditional-compilation.md
@@ -41,8 +41,12 @@ they get set in the [`[features]` section][features] of your `Cargo.toml`:
41
# no features by default
42
default = []
43
44
+# Add feature "foo" here, then you can use it.
45
+# Our "foo" feature depends on nothings else.
46
+foo = []
47
+
48
# The “secure-password” feature depends on the bcrypt package.
-secure-password = ["bcrypt"]
49
+# secure-password = ["bcrypt"]
50
```
51
52
When you do this, Cargo passes along a flag to `rustc`:
0 commit comments