waybetter/crates/waybetter-host/Cargo.toml
CRT 1eab4a9de5 host: place child webviews on Linux in a GtkOverlay over the shell
tauri 2 (runtime-wry build_gtk with the window's GtkBox) packs every child
webview into the window box, stacked and with set_position/set_size ignored,
so tab webviews landed under the shell instead of over their panes.
place_child/attach_shell move them into a GtkOverlay (shell as base layer)
and allocate each at its exact rect via get-child-position; placed_rect
reports the placement (GTK children have no position). Windows/macOS keep
set_position/set_size.
2026-09-28 21:40:51 +07:00

39 lines
1.2 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"]
[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 }
# 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 }
[dev-dependencies]
tempfile = "3"