clean-rs 0.1.18

Project clean tools support rust, golang, maven and gradle projects out of the box
Documentation
1
2
3
4
5
6
7
pub struct RmDirGuard<T: AsRef<std::path::Path>>(pub T);

impl<T: AsRef<std::path::Path>> Drop for RmDirGuard<T> {
    fn drop(&mut self) {
        let _ = std::fs::remove_dir_all(self.0.as_ref());
    }
}