Site-agnostic parts of the X app, behind a small site adapter: - crates/waybetter-host: webview-label security policy and tab rect clamp, account profiles with native-owned accounts (AccountRules), plugin store with bundled-plugin upgrades (PluginHost), signed data-only hotfix channel, update scheduling and crash handshake, tab payloads/link routing/tab-chrome validation, and (feature "tauri") webview helpers and the Windows system menu. - packages/runtime: DOM hub, request hub, plugin API core, OKLab theme color model, split-view rail hiding, link routing and account reporting, each configured by a SiteAdapter. - packages/shell: address bar, pane, link-drop, profile, palette and update-chip models, and window controls with the Tauri API injected. Tests moved/adapted from the app: 45 Rust (headless), 40 TypeScript. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
912 B
TOML
33 lines
912 B
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"]
|
|
|
|
[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"
|
|
tauri = { version = "2", features = ["unstable"], optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows = { version = "0.62", features = ["Win32_Foundation", "Win32_UI_WindowsAndMessaging"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|