How to silent warning from cargo workspace

I used to silent warning in crate level by using following attribute


Now i'm using a workspace, how can i deal with this in workspace Cargo.toml file?

# [PROJECT_DIR]/Cargo.toml
dead_code = "allow"

# [PROJECT_DIR]/crates/bar/Cargo.toml
workspace = true

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.