vs-engine-webkit 0.2.21

Browser engine bindings for vibesurfer.
Documentation
[package]
name = "vs-engine-webkit"
description = "Browser engine bindings for vibesurfer."
readme = "README.md"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
build = "build.rs"

[lints]
workspace = true

[features]
# Exposes `vs_engine_webkit::test_support::TestEngine` — an in-memory
# fake `Engine` used by daemon-layer tests to exercise audit / store
# / ref-resolution code without booting WebKit. Sealed: production
# builds (which never enable this feature) cannot link the fake.
test-support = []

[dependencies]
vs-protocol = { path = "../vs-protocol", version = "0.2.21" }
vs-humanize = { path = "../vs-humanize", version = "0.2.21" }
thiserror = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Downloads cross the JS/Rust boundary base64-encoded: the engines'
# `eval` bridges return strings, not binary.
base64 = "0.22.1"
[target.'cfg(target_os = "linux")'.dependencies]
# WebKitGTK 6.0 + GLib for the Linux backend. Heavy system deps
# (libwebkitgtk-6.0, libgtk-4, libsoup-3.0) — only pulled when
# targeting Linux. Compilation requires the matching -dev packages on
# the build host.
webkit6 = { version = "0.6", features = ["v2_42"] }
# webkit6 0.6.1 bindings reference `gtk::Accessible`, gated behind gtk4
# `v4_10`. webkit6 only forwards `gtk_v4_18` (would demand GTK >= 4.18),
# so enable the minimum `v4_10` on gtk4 directly — unifies across the
# shared crate. https://github.com/frane/vibesurfer/issues/5
gtk4 = { version = "0.11", features = ["v4_10"] }
glib = "0.22"
x11rb = { version = "0.13.2", features = ["xtest", "xinput"] }
ashpd = { version = "0.12.3", default-features = false, features = ["tokio"] }
tokio = { version = "1.52.3", features = ["rt", "sync", "macros"] }
enumflags2 = "0.7.12"
[target.'cfg(target_os = "macos")'.dependencies]
# objc2 ecosystem — Rust bindings to the Apple Objective-C runtime and
# the AppKit / Foundation / WebKit frameworks. Most call sites are safe
# at our level; a small unsafe surface remains for delegate-class
# definitions and a few message sends.
objc2 = { version = "0.6", features = ["exception"] }
objc2-foundation = { version = "0.3", features = ["NSURL", "NSURLRequest", "NSString", "NSError", "NSDictionary", "NSValue", "NSArray", "NSData", "NSThread", "NSDate", "NSRunLoop", "NSHTTPCookie", "NSURLResponse", "NSProgress", "NSURLAuthenticationChallenge", "NSURLProtectionSpace", "NSURLCredential", "NSTimer", "NSStream"] }
objc2-app-kit = { version = "0.3", features = ["NSApplication", "NSResponder", "NSView", "NSWindow", "NSImage", "NSImageRep", "NSBitmapImageRep", "NSGraphics", "NSGraphicsContext", "NSEvent", "NSScreen", "objc2-core-graphics"] }
objc2-core-graphics = { version = "0.3", features = ["CGImage", "CGEvent", "CGEventTypes", "CGRemoteOperation", "CGDirectDisplay"] }
objc2-web-kit = { version = "0.3", features = ["WKWebView", "WKWebViewConfiguration", "WKPreferences", "WKNavigation", "WKNavigationDelegate", "WKUIDelegate", "WKUserContentController", "WKUserScript", "WKScriptMessage", "WKScriptMessageHandler", "WKContentWorld", "WKWebsiteDataStore", "WKHTTPCookieStore", "WKSnapshotConfiguration", "WKFrameInfo", "WKNavigationAction", "WKWindowFeatures", "WKNavigationResponse", "WKDownload", "WKDownloadDelegate", "WKURLSchemeHandler", "WKURLSchemeTask"] }
block2 = "0.6"

[target.'cfg(target_os = "windows")'.dependencies]
# Microsoft WebView2 (Edge-based) bindings + the Windows COM runtime.
# Heavy system dep — requires the WebView2 Runtime installed on the
# build/target host. Compilation requires the Windows SDK on the host.
webview2-com = "0.39"
windows = { version = "0.62", features = [
    "Win32_Foundation",
    "Win32_System_Com",
    "Win32_System_Com_StructuredStorage",
    "Win32_System_Threading",
    "Win32_UI_WindowsAndMessaging",
    "Win32_Graphics_Gdi",
    "Win32_Graphics_DirectComposition",
    "Win32_System_DataExchange",
    "Win32_System_Memory",
    "Win32_System_Ole",
    "Win32_System_SystemServices",
    "Win32_UI_Shell",
    "Win32_UI_Shell_Common",
] }

[dev-dependencies]
tempfile = "3"