2026-03-12 09:58:45 +00:00
|
|
|
[package]
|
|
|
|
|
name = "weft-app-shell"
|
|
|
|
|
version.workspace = true
|
|
|
|
|
edition.workspace = true
|
|
|
|
|
rust-version.workspace = true
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "weft-app-shell"
|
|
|
|
|
path = "src/main.rs"
|
|
|
|
|
|
|
|
|
|
[features]
|
2026-03-12 14:16:17 +00:00
|
|
|
# Enable actual Servo rendering. Deps are declared as optional below and only
|
|
|
|
|
# fetched when this feature is active. The Servo monorepo (~1 GB) is not
|
|
|
|
|
# downloaded during a plain `cargo check` or `cargo build` without this feature.
|
|
|
|
|
servo-embed = ["dep:servo", "dep:winit", "dep:softbuffer", "dep:serde", "dep:toml"]
|
2026-03-12 09:58:45 +00:00
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
anyhow = "1.0"
|
|
|
|
|
tracing = "0.1"
|
|
|
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
|
wayland-client = "0.31"
|
|
|
|
|
wayland-backend = "0.3"
|
|
|
|
|
wayland-scanner = "0.31"
|
|
|
|
|
bitflags = "2"
|
feat: appd IPC relay, WIT interfaces, UI kit, gesture routing, and CI hardening
- weft-appd: per-session IPC socket paths; bidirectional Wasm-HTML JSON relay
via spawn_ipc_relay; SO_PEERCRED UID check on Unix socket connections;
PanelGesture request and NavigationGesture broadcast for compositor gestures
- weft-runtime: weft:app/ipc, weft:app/fetch, weft:app/notifications WIT
interfaces; IpcState non-blocking Unix socket host functions; ureq-backed
net:fetch host function (net-fetch feature); notify-send notifications host
- weft-file-portal: spawn a thread per accepted connection for concurrent access
- weft-app-shell: weft-system:// URL translation; WEFT UI Kit UserScript
injection; resolve_weft_system_url helper
- weft-servo-shell: forward compositor navigation gestures to weft-appd
WebSocket as PanelGesture; WEFT UI Kit UserScript injection
- infra/shell: weft-ui-kit.js with 11 custom elements (weft-button, weft-card,
weft-dialog, weft-icon, weft-list, weft-list-item, weft-menu, weft-menu-item,
weft-progress, weft-input, weft-label); system-ui.html handles
NAVIGATION_GESTURE messages and dispatches weft:navigation-gesture CustomEvent
- infra/systemd: add missing env vars to weft-appd.service; correct
servo-shell.service binary path and system-ui.html argument
- .github/workflows/ci.yml: exclude weft-servo-shell and weft-app-shell from
cross-platform job; add them to linux-only job with libsystemd-dev dependency
2026-03-12 11:49:45 +00:00
|
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
|
|
|
|
toml = { version = "0.8", optional = true }
|
2026-03-12 14:16:17 +00:00
|
|
|
|
|
|
|
|
[dependencies.servo]
|
|
|
|
|
git = "https://github.com/marcoallegretti/servo"
|
build: select compiling Servo and Stylo fork revisions
Both Servo hosts tracked the marcoallegretti/servo `servo-weft` branch,
which the lockfile resolved to 8e7dc40. That revision's servo-layout does
not compile (E0308 and E0716 in build_backdrop_filter). WEFT also resolved
upstream Stylo dca3934, where backdrop-filter is gated behind
layout.unimplemented, because the Servo fork's own [patch] for Stylo does
not apply to dependents.
Pin Servo by revision to f0bb1aa (8e7dc40 plus the build fix) and add a
root [patch."https://github.com/servo/stylo"] selecting the
marcoallegretti/stylo fork at f1ba496 for all eight Stylo crates Servo
uses. Cargo.lock changes only the 66 source lines of those packages.
Record both pins, their reachable branches, purpose and removal
conditions in SERVO_PIN.md, and restate its limitations against executed
evidence. Update the Nix outputHashes: the Stylo hash is recomputed for
f1ba496 with the method that reproduces the previous dca3934 value; the
Servo hash is not yet known for f0bb1aa and is left as lib.fakeHash, so
Nix builds report the expected value instead of using a stale one.
Validation:
- cargo metadata --locked: ok; no servo/stylo sources remain in the lock
- cargo check -p weft-servo-shell --features servo-embed --locked:
all of Servo, including servo-layout, compiles; the remaining errors are
in the shell's own embedder code
- cargo fmt --check; portable workspace tests: 78 passed
- Nix fetchgit could not run here (archive downloads and the sandbox's
TLS to the proxy fail), so the Servo hash remains unverified
2026-10-09 00:13:08 +00:00
|
|
|
rev = "f0bb1aaf981b65c8dddc848bb647045d4c777d11"
|
2026-03-12 14:16:17 +00:00
|
|
|
optional = true
|
|
|
|
|
default-features = false
|
|
|
|
|
|
|
|
|
|
[dependencies.winit]
|
|
|
|
|
version = "0.30"
|
|
|
|
|
optional = true
|
|
|
|
|
features = ["wayland"]
|
|
|
|
|
|
|
|
|
|
[dependencies.softbuffer]
|
|
|
|
|
version = "0.4"
|
|
|
|
|
optional = true
|