waybetter/crates/waybetter-host/Cargo.toml
CRT b4109fc282 host: settings backup envelope and encrypted folder sync
backup: the versioned .waybetter envelope (format/version checks, only the
app's registered sections kept), secret-key scrubbing, the plugins /
customCss / accounts sections every app has, plugin import checks and
atomic writes. sync: Argon2id + XChaCha20-Poly1305 snapshots of the
settings backup in a folder the owner syncs, moved unchanged from the
wayBetter for X app with its tests.
2026-09-29 10:58:15 +07:00

50 lines
2.1 KiB
TOML

[package]
name = "waybetter-host"
version = "0.1.0"
description = "wayBetter native host: one window, a trusted shell webview and one child webview per site tab"
license = "GPL-3.0-or-later"
edition = "2021"
rust-version = "1.88"
publish = false
[lib]
name = "waybetter_host"
path = "src/lib.rs"
[features]
default = []
# Tauri glue (webview helpers, window system menu). Off for headless tests.
tauri = ["dep:tauri", "dep:windows", "dep:webview2-com", "dep:gtk", "dep:objc2-app-kit"]
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
url = "2"
sha2 = "0.10"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
minisign-verify = "0.2"
base64 = "0.22"
# The OS language preference (first run, "Follow system"); no dependencies of its own on desktop.
sys-locale = "0.3"
# Encrypted settings sync (a folder the owner picks): Argon2id key from the passphrase,
# XChaCha20-Poly1305 per snapshot. Pure Rust (RustCrypto), no server, no account.
argon2 = { version = "0.5", default-features = false, features = ["alloc"] }
chacha20poly1305 = { version = "0.10", default-features = false, features = ["alloc"] }
getrandom = "0.2"
tauri = { version = "2", features = ["unstable"], optional = true }
[target.'cfg(windows)'.dependencies]
windows = { version = "0.62", features = ["Win32_Foundation", "Win32_System_Com", "Win32_System_Threading", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"], optional = true }
# The WebView2 COM interfaces wry already links (hidden tabs: low memory target).
webview2-com = { version = "0.39", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
# The GTK version tauri/wry link: child webviews are laid out in a GtkOverlay (host::place_child).
gtk = { version = "0.18", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
# The AppKit bindings wry already links (host::raise_shell re-orders the shell's WKWebView).
objc2-app-kit = { version = "0.3", optional = true, default-features = false, features = ["std", "NSGraphics", "NSResponder", "NSView", "NSWindow"] }
[dev-dependencies]
tempfile = "3"