Skip to content

Disabling compiler warnings? #502

Closed Answered by jschwe
TriceHelix asked this question in Q&A
Discussion options

You must be logged in to vote

I'm currently trying to disable compiler warnings for a third-party crate.

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.

I cannot simply add #![allow(warnings)] to some kind of "meta" manifest file which pulls in my dependency.

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://…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TriceHelix
Comment options

Answer selected by TriceHelix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants