Skip to content

compact_str is a workspace dependency no crate uses #994

Description

@andrewgazelka

compact_str is declared in [workspace.dependencies] in the root Cargo.toml, but nothing uses it:

$ rg -n 'compact_str' --glob 'Cargo.toml' .
./Cargo.toml:69:compact_str = "0.10.0"

$ rg -n 'compact_str|CompactString' --glob '*.rs' crates events tools
(no matches)

No member crate names it as a dependency, and no source file imports it. cargo machete does not catch it, because it checks per-crate manifests rather than the workspace table, so the gate stays green.

The cost is small but real: it is carried through every dependency pass as if it were live. I bumped it 0.9.0 to 0.10.0 in #991 rather than delete it, because removing a dependency is a different change from updating one.

The fix is to delete the line.

Filed by an agent from a dependency-update pass; not reviewed by a human.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions