You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: improve API naming and add macOS cross-compilation CI
- Rename dispatchNoContext/bindNoContext to dispatchSimple/bindSimple
- Rename init to addInitScript to avoid conflict with Zig constructor
convention
- Make Status enum pub so callers can reference the type by name
- Mark mapError as inline
- Add macOS SDK cross-compilation steps to CI with caching
Copy file name to clipboardExpand all lines: README.md
+31-5Lines changed: 31 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Zig bindings for [webview/webview](https://github.com/webview/webview) — a tiny cross-platform library for building desktop applications with web technologies using a native browser widget.
4
4
5
-
Zig API with error unions, comptime-powered typed callbacks, and JS ↔ Zig bindings via `bind` / `respond`.
5
+
Idiomatic Zig API featuring error unions and comptime-powered typed callbacks.
6
6
7
7
## Requirements
8
8
@@ -38,7 +38,7 @@ pub fn main() !void {
38
38
defer w.destroy() catch unreachable;
39
39
try w.setTitle("Hello");
40
40
try w.setSize(800, 600, .none);
41
-
try w.navigate("https://example.com");
41
+
try w.setHtml("Thanks for using webview!");
42
42
try w.run();
43
43
}
44
44
```
@@ -67,15 +67,41 @@ Cross-compilation to macOS and Windows is supported.
67
67
Obtain a macOS SDK (e.g. via [macosx-sdks](https://github.com/joseluisq/macosx-sdks)) and pass its path with `-Dmacos-sdk`:
0 commit comments