Turn off all warnings on a given crate?

  1. I have a workspace with many crates in it.

  2. One of the crates contains generated code.

  3. I would like to turn off all warnings on this crate (as the code is generated, and I don't intend to fix it.)

Is this possible?

It looks like this might be what you're looking for: #![allow(warnings)]

Try adding that to the top of the crate.

1 Like

Generated crate used to be first one to output warnings. Now, I a different crate is outputting warnings at top.

So it either suppressed all warnings from that crate ... or changed the order of crates (unlikely).

Thanks!