Skip to content

Commit 69b7b0b

Browse files
nyurikNoratrieb
authored andcommitted
Clarify how to disable warnings in deps
1 parent b20c899 commit 69b7b0b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/building/new-target.md

+7
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ to the `deny-warnings` setting in `config.toml`, the build may suddenly start
141141
to fail. To work around the warnings, you may want to disable `deny-warnings`
142142
in the config, or modify the dependency to remove the warnings.
143143

144+
```toml
145+
# /config.toml
146+
[rust]
147+
deny-warnings = false
148+
```
149+
150+
144151
[`libc`]: https://crates.io/crates/libc
145152
[`cc`]: https://crates.io/crates/cc
146153
[patch]: https://doc.rust-lang.org/stable/cargo/reference/overriding-dependencies.html#the-patch-section

0 commit comments

Comments
 (0)