add native window/webview builtins to el runtime

Adds five new builtins backed by wry 0.47 + tao 0.30:
- window_open(title, width, height) — configure window
- webview_load_url(url) — set URL to navigate to
- webview_load_html(html) — set HTML to display
- webview_eval(js) — queue JS to eval after load
- window_run() — open native OS window and run event loop (blocking, exits on close)

WebViewState is stored in a thread_local. window_run() calls
tao's event_loop.run() which never returns; process exits when
the window is closed via std::process::exit(0).
This commit is contained in:
Will Anderson
2026-04-28 14:14:34 -05:00
parent 07cfde2402
commit b9d096ef5b
4 changed files with 2189 additions and 61 deletions
+2
View File
@@ -34,3 +34,5 @@ hmac = { workspace = true }
sha2 = { workspace = true }
hex = { workspace = true }
base64 = { workspace = true }
wry = "0.47"
tao = "0.30"