Reputation: 427
Now, The only way I used is cargo clean
and then cargo build
again.
Upvotes: 0
Views: 164
Reputation: 23
There's two way to have a clean compile:
Remove directory target with following command if you using Mac or Linux
rm -rf target
Cargo clean and build with following command:
cargo clean && cargo build --release
Upvotes: 0
Reputation: 2824
You can also delete the target
directory that contains all the build artifacts.
Upvotes: 1