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.
2 parents e74a472 + d30662f commit 5fedd9cCopy full SHA for 5fedd9c
src/doc/book/conditional-compilation.md
@@ -41,8 +41,9 @@ they get set in the [`[features]` section][features] of your `Cargo.toml`:
41
# no features by default
42
default = []
43
44
-# The “secure-password” feature depends on the bcrypt package.
45
-secure-password = ["bcrypt"]
+# Add feature "foo" here, then you can use it.
+# Our "foo" feature depends on nothing else.
46
+foo = []
47
```
48
49
When you do this, Cargo passes along a flag to `rustc`:
0 commit comments