Name and path a binary target clearly.
Section: Manifest repair snippets
Define an explicit binary target
toml
toml
[[bin]]
name = "my-cli"
path = "src/main.rs"Explanation
Useful if Cargo cannot find the binary target you expect or if the project contains multiple executables.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Manifest repair snippets
Declare optional dependencies with features
Avoid feature-resolution confusion.
Run one package and one binary
Disambiguate package and binary target in a multi-package repo.