From 69b7b0bc912f48e3df0fe57d3b09b67664dcc4c2 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Thu, 18 Jul 2024 12:27:43 -0400 Subject: [PATCH] Clarify how to disable warnings in deps --- src/building/new-target.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/building/new-target.md b/src/building/new-target.md index 4c58f303..9e6aad3e 100644 --- a/src/building/new-target.md +++ b/src/building/new-target.md @@ -141,6 +141,13 @@ to the `deny-warnings` setting in `config.toml`, the build may suddenly start to fail. To work around the warnings, you may want to disable `deny-warnings` in the config, or modify the dependency to remove the warnings. +```toml +# /config.toml +[rust] +deny-warnings = false +``` + + [`libc`]: https://crates.io/crates/libc [`cc`]: https://crates.io/crates/cc [patch]: https://doc.rust-lang.org/stable/cargo/reference/overriding-dependencies.html#the-patch-section