Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Change The Name Of A Rust Binary So It's Different From The Package Name

By default, the name of a rust binary is the same as the package name (which I think comes from the directory name). I'm changing the name by adding this to my Cargo.toml file :

toml
[[bin]]
name = "new-name"
path = "src/main.rs"