Expand description
Embedded single-binary SSR Forge Web UI for arks serve (E8 — GitHub/GitLab common interface).
Compile-time embedded assets (include_str!), strict HTML entity escaping on every dynamic
value, and Content-Security-Policy: default-src 'self'; script-src 'self'.
Never interferes with Git smart/dumb HTTP (info/refs, git-upload-pack,
git-receive-pack, objects/, HEAD) or Git LFS (info/lfs/).
Spec: sot:root/v0-2-0-scope-expansion §2.8 (E8).
Constants§
Functions§
- handle_
web_ ui - Route browser
GET/POSTrequests to the embedded SSR Web UI (local Actions disabled). - handle_
web_ ui_ with_ actions - Route browser
GET/POSTrequests to the embedded SSR Web UI; returnsNonefor Git smart/dumb HTTP and LFS paths so protocol traffic passes through untouched. - html_
escape - Strictly escape HTML special characters to prevent XSS.
- init_
bare_ repo - Initialize a standards-compliant bare Git repository purely in Rust (zero
gitspawn). - multi_
repo_ page_ handler - Build a
PageHandlerserving multiple Git repositories underroot_dir. - web_
ui_ page_ handler - Build a
PageHandlerserving the embedded SSR Web UI forgit_dir(local Actions runner disabled unlessARKS_SERVE_ALLOW_LOCAL_ACTIONS=1). - web_
ui_ page_ handler_ with_ actions - Build a
PageHandlerserving the embedded SSR Web UI with explicit opt-in control over local Actions workflow execution.