Disabling compiler warnings? #502
-
Hi everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think the best solution here is to open an issue or PR upstream in the repository of the crate, and ask them to fix the warning.
This is independent of corrosion, and doesn't work with pure cargo builds either. In theory, you could use |
Beta Was this translation helpful? Give feedback.
I think the best solution here is to open an issue or PR upstream in the repository of the crate, and ask them to fix the warning.
This is independent of corrosion, and doesn't work with pure cargo builds either.
#![allow(warnings)]
are placed at the top of a.rs
file and affect everything below. External crates are not affected by this.In theory, you could use
RUSTFLAGS
to globally silence warnings (add--allow=warnings
, either via a.cargo/config.toml
file or via [corrosion_add_target_rustflags(https://…