win-desktop-utils 0.1.2

Windows-first desktop utility helpers for Rust apps
Documentation
1
2
3
4
5
6
7
8
fn main() {
    let path = std::env::current_dir().unwrap().join("temp-delete-me.txt");
    std::fs::write(&path, "temporary file").unwrap();

    win_desktop_utils::move_to_recycle_bin(&path).unwrap();

    println!("sent to recycle bin: {}", path.display());
}