Now, The only way I used is cargo clean and then cargo build again.
cargo clean
cargo build
You can also delete the target directory that contains all the build artifacts.
target