mirror of
https://github.com/codexu/note-gen.git
synced 2026-04-25 12:55:57 +03:00
[PR #773] [CLOSED] refactor(backup): replace system zip/unzip with pure Rust implementation #780
Labels
No labels
bug
duplicate
feature
platform: Android
platform: Linux
platform: Windows
platform: iOS
platform: macOS
priority: high
priority: low
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/note-gen#780
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/codexu/note-gen/pull/773
Author: @NitronPlus
Created: 11/13/2025
Status: ❌ Closed
Base:
dev← Head:zip-crate📝 Commits (3)
6d7ce44refactor(backup): replace system zip/unzip with pure Rust implementationa9f5685unit test for the zip/unzip function9a3ede0handle file permission for unix📊 Changes
2 files changed (+511 additions, -83 deletions)
View changed files
📝
src-tauri/Cargo.toml(+5 -0)📝
src-tauri/src/backup.rs(+506 -83)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.