I know that build.rs
can perform tasks before the program compilation starts, so I can prepare whatever I want.
What if there's a task to be performed after the compilation is complete, as some sort of cleanup? Is there any way to do such a thing?
As a simple example: before compilation I want rename a file from foo.txt
to abc.txt
for whatever reason. Then after the compilation terminates I want to rename it back to foo.txt
.