feat: gsmol-compatible backup export and import behind the store feature

This commit is contained in:
randogoth 2026-09-29 00:23:04 +03:00
parent 96d2412370
commit 4a780ed648
6 changed files with 528 additions and 17 deletions

View file

@ -11,7 +11,7 @@ default = ["store", "bundled-sqlite"]
# one. Off, the crate keeps identities, addresses, seal/open and the raw
# transport operations for hosts with their own database and thin FFI
# consumers that need only the crypto and envelope layer.
store = ["dep:rusqlite"]
store = ["dep:rusqlite", "dep:serde", "dep:serde_json"]
# Bundle libsqlite3 so the store needs no system SQLite; embedders with their
# own SQLite (Android's NDK case) build with default-features = false.
bundled-sqlite = ["rusqlite/bundled"]
@ -29,6 +29,8 @@ hmac = "0.12"
hkdf = "0.12"
rand_core = { version = "0.6", features = ["getrandom"] }
rusqlite = { version = "0.32", optional = true }
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }
data-encoding = "2"
[dev-dependencies]