fc1c0ed8d3fb793125593946bdc090c750cfef22
web_surface_runtime.rs hit 628 lines because it carried four unrelated concerns: - session domain types (`WebSurfaceRuntimeScope`, `WebSurfaceSession`, `WebSurfaceUrlChange`, …) and their config-dir / `session_for_scope` helpers — these are the runtime's input vocabulary, not its control flow. - wire-side glue (scroll-input field marshalling, `pending_input_kind` classifier, the latency tracing call, and the `From<&Site...>` impl that lowers permissions to the Servo client) — these are the runtime's output vocabulary. - the runtime itself, plus its tests harness. Split into: - `web_surface_runtime.rs` (441 lines): WebSurfaceRuntime + Drop. - `web_surface_runtime_session.rs`: the session types + helpers, with `pub(super)`-exposed methods so the runtime can drive them. - `web_surface_runtime_wire.rs`: the wire helpers and the From impl. `web_surface_runtime` keeps re-exporting the URL-change / frame / ensure-result types so existing call sites (`web_surface_state.rs`, `web_surface.rs`, `web_surface_controller.rs`) need no rewiring.
ELY Browser
Native Rust + GPUI browser workspace for ELY Browser by Elydora.
The repository is organized around explicit product boundaries from PRD.md:
domain state, browser orchestration, design tokens, GPUI shell, and Servo host contracts.
Reference GPUI ecosystem repositories live under references/ for local review and are excluded
from version control.
Local Commands
cargo fmt --all --check
cargo check --workspace --all-targets
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace --all-targets
cargo check -p ely_servo_host --features servo-engine --all-targets
cargo clippy -p ely_servo_host --features servo-engine --all-targets -- -D warnings
cargo test -p ely_servo_host --features servo-engine --test software_host
scripts/verify_prd_site_rendering.sh
scripts/verify_windows_app_manifest.sh
cargo run -p ely_app
Cloudflare Auth Configuration
/api/auth/* is served by Better Auth in the Cloudflare Worker. Local wrangler dev
uses ELY_AUTH_BASE_URL from cloudflare/wrangler.toml; deployed environments should
set the matching public Worker origin.
Use Wrangler secrets or an untracked cloudflare/.dev.vars file for the remaining auth
bindings:
wrangler secret put ELY_AUTH_SECRET
wrangler secret put ELY_AUTH_GOOGLE_CLIENT_ID
wrangler secret put ELY_AUTH_GOOGLE_CLIENT_SECRET
wrangler secret put ELY_AUTH_GITHUB_CLIENT_ID
wrangler secret put ELY_AUTH_GITHUB_CLIENT_SECRET
wrangler secret put ELY_AUTH_EMAIL_OTP_ENDPOINT
wrangler secret put ELY_AUTH_EMAIL_OTP_TOKEN
Languages
Rust
76.2%
TypeScript
18.6%
JavaScript
3.8%
Shell
0.8%
CSS
0.3%
Other
0.2%