cargo icon indicating copy to clipboard operation
cargo copied to clipboard

Lint that binary names are kebab case

Open epage opened this issue 7 months ago • 0 comments

What it does

Lints that the [[bin]] name (explicit or inferred) is kebab case

See also #14439.

Advantage

This matches common platform conventions

Drawbacks

There may be existing conventions people are trying to match

Example

[[bin]]
name = "foo_bar"

or src/bin/foo_bar/main.rs

Could be written as:

[[bin]]
name = "foo-bar"

or src/bin/foo-bar/main.rs

epage avatar May 22 '25 16:05 epage