Now, The only way I used is cargo clean
and then cargo build
again.
Asked
Active
Viewed 128 times
2 Answers
1
You can also delete the target
directory that contains all the build artifacts.

Dan Forbes
- 2,734
- 3
- 30
- 60
-
1That's exactly what `cargo clean` does? – boundless-forest Oct 15 '20 at 01:54
-
Indeed. Aside from deleting the build artifacts, how else do you wish to "clean up" Substrate and compile again? – Dan Forbes Oct 15 '20 at 13:18
0
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

Ayoung
- 23
- 4