No description
- Zig 79.7%
- Python 20.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| example | ||
| scripts | ||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| LICENSE | ||
| README.md | ||
| swc.zig | ||
zig-neuswc
zig 0.16 bindings for
neuswc that are easier to use than the
output of zig translate-c.
The goal is to keep the generated Wayland surface close to the upstream C library, while giving Zig code a small, predictable wrapper around it.
Build
Validate the Zig wrapper and generated Wayland bindings:
zig build
Example
zig-neuswc includes a Zig translated version of the example compositor
in swc. The example target links against a system-provided libswc, plus
wayland-server and xkbcommon:
zig build -Dexample=true
swc-launch zig-out/bin/example
API
zig-neuswc stays close to zig-wayland
where that makes sense, but it uses a data-first listener style so the handler
can infer the payload type without an extra comptime parameter.