mirror of
https://github.com/codexu/note-gen.git
synced 2026-04-25 21:05:55 +03:00
[PR #769] [CLOSED] refactor(backup): replace system zip/unzip with pure Rust implementation #779
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#779
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/769
Author: @NitronPlus
Created: 11/12/2025
Status: ❌ Closed
Base:
dev← Head:zip-crate📝 Commits (1)
e843155refactor(backup): replace system zip/unzip with pure Rust implementation📊 Changes
2 files changed (+519 additions, -81 deletions)
View changed files
📝
src-tauri/Cargo.toml(+5 -0)📝
src-tauri/src/backup.rs(+514 -81)📄 Description
Replace system-dependent zip/unzip commands with the
zipcrate for cross-platform compatibility and better error handling.Fix two bugs when restore backup files
I also write three 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.