note-gen icon indicating copy to clipboard operation
note-gen copied to clipboard

refactor(backup): replace system zip/unzip with pure Rust implementation

Open NitronPlus opened this issue 3 months ago • 0 comments

Replace system-dependent zip/unzip commands with the zip crate for cross-platform compatibility and better error handling.

Fix two bugs when restore backup files, see #771

I also write five unit test in backup.rs, it will import tempfile crates in dev-dependencies. And use walkdir crate to rewrite copy_dir_recursive function .If you prefer the previous version , I will change it and file a new PR

Adding zip and walkdir crates will increase the final binary size by approximately 1MB on Windows

NitronPlus avatar Nov 13 '25 03:11 NitronPlus