mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-28 00:06:52 +00:00
feat(history): git-based snapshots, page history and restore
Deterministic Logseq-compatible Markdown export committed to a bare gix repository, incremental snapshots driven by the op log, snapshot policy, page history/diff, restore through the Graph API and pure-Rust HTTP push. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fbcfcf678f
commit
3ab03777ea
13 files changed
+3535
-9
No files matched your search
@@ -0,0 +1,25 @@
|
||||
[package]
|
||||
name = "synapse-history"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
description = "Automatic git-based backup and version history of a Synapse graph"
|
||||
|
||||
[dependencies]
|
||||
synapse-core.workspace = true
|
||||
chrono.workspace = true
|
||||
rusqlite.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
thiserror.workspace = true
|
||||
# Pure-Rust git (no C toolchain: builds for Android/Windows). Local repo only; push is ours.
|
||||
gix = { version = "0.89", default-features = false, features = ["sha1"] }
|
||||
# Blocking HTTPS client (rustls) for pushing: gix cannot push yet.
|
||||
ureq = { version = "3", default-features = false, features = ["rustls"] }
|
||||
# zlib for the pack we send (already in the tree through gix/ureq).
|
||||
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
|
||||
# Unified text diffs for page versions.
|
||||
similar = "2"
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3"
|
||||
Reference in new issue
Block a user