I am not a regular user of Rust, but I use some tools that are in cargo.
Today I want to install the crate du-dust, but the name of the binary (dust) conflict with a different program I have installed.
My solution right now is to clone the project, edit the Cargo.toml and install from there.
That's fine, but I wondered if there was a better way to do it, directly from cargo (with a flag or something).
--root can specify the directory to put the installed binary, e.g.
$ cargo install du-dust --root ./tmp
mv ./tmp/bin/dust ~/.cargo/bin/dust-lol
But wait, what about installing it the normal way and renaming it in where it's installed...
cargo install du-dust
mv ~/.cargo/bin/dust ~/.cargo/bin/dust-lol
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.