Clippy: multiple categories of disallowed-types?

I want to forbid one of my crates in my workspace from using a foreign struct, but I also want another ruleset applied to a different crate in my workspace.

With a global single disallowed-types... this is not possible

in my workspace clippy.toml:

disallowed-types = [
    { path = "Foo", reason = "use `Bar` instead" },
    { path = "Bar", reason = "use `Foo` instead" },

I can't specify in my two crates, which one of the rules should apply, since I can only have the union of all.

i.e. in both crate's I can only call this:


What I would like is some kind of way to maintain multiple lists, and choose between and combine them