Skip to content

Commit 0cd9842

Browse files
authored
Add note about patching dependencies and warnings. (#1354)
1 parent 12a2e08 commit 0cd9842

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/building/new-target.md

+6
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ index be15e50e2bc..4fb1248ba99 100644
104104

105105
After this, run `cargo update -p libc` to update the lockfiles.
106106

107+
Beware that if you patch to a local `path` dependency, this will enable
108+
warnings for that dependency. Some dependencies are not warning-free, and due
109+
to the `deny-warnings` setting in `config.toml`, the build may suddenly start
110+
to fail. To work around the warnings, you may want to disable `deny-warnings`
111+
in the config, or modify the dependency to remove the warnings.
112+
107113
[`libc`]: https://crates.io/crates/libc
108114
[`cc`]: https://crates.io/crates/cc
109115
[patch]: https://doc.rust-lang.org/stable/cargo/reference/overriding-dependencies.html#the-patch-section

0 commit comments

Comments
 (0)