Skip to content

How to make a cfg known to clippy in workspace level #14476

Closed Answered by Alexendoo
gnaaman-dn asked this question in Q&A
Discussion options

You must be logged in to vote

You could add the --check-cfg=cfg(my_cfg) to RUSTFLAGS, but this would mean you still get a warning when not using those RUSTFLAGS. Could show up in editors for example

lints.workspace = true and move per package configuration into top level #![allow/warn/etc] is an option, in the future it's likely cargo will gain the ability to do inheritance and per package config in Cargo.toml - rust-lang/cargo#13157

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@gnaaman-dn
Comment options

Comment options

You must be logged in to vote
1 reply
@gnaaman-dn
Comment options

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