Skip to content

Commit 451d43f

Browse files
committed
elaborate on warnings
1 parent bf46b0f commit 451d43f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/building/new-target.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,17 @@ After this, run `cargo update -p libc` to update the lockfiles.
138138
Beware that if you patch to a local `path` dependency, this will enable
139139
warnings for that dependency. Some dependencies are not warning-free, and due
140140
to the `deny-warnings` setting in `config.toml`, the build may suddenly start
141-
to fail. To work around the warnings, you may want to disable `deny-warnings`
142-
in the config, or modify the dependency to remove the warnings.
141+
to fail.
142+
To work around warnings, you may want to:
143+
- Modify the dependency to remove the warnings
144+
- Or for local development purposes, suppress the warnings by setting deny-warnings = false in config.toml.
143145

144146
```toml
145147
# config.toml
146148
[rust]
147149
deny-warnings = false
148150
```
149151

150-
151152
[`libc`]: https://crates.io/crates/libc
152153
[`cc`]: https://crates.io/crates/cc
153154
[patch]: https://doc.rust-lang.org/stable/cargo/reference/overriding-dependencies.html#the-patch-section

0 commit comments

Comments
 (0)