1
3
Fork
You've already forked zig-swc
2
Zig native bindings for neuswc with interoperability with zig-wayland
  • Zig 100%
Find a file
2026年05月13日 00:04:20 +03:00
example example: use non-shift keysyms 2026年03月02日 13:51:08 +03:00
.gitignore initial commit 2026年03月01日 20:45:45 +03:00
build.zig initial commit 2026年03月01日 20:45:45 +03:00
build.zig.zon build.zig.zon: use proper source file 2026年05月13日 00:04:20 +03:00
LICENSE initial commit 2026年03月01日 20:45:45 +03:00
README.md initial commit 2026年03月01日 20:45:45 +03:00
swc.zig feat: support returning error from binding handler 2026年03月01日 21:21:32 +03:00

zig-swc

zig 0.15 bindings for neuswc that are a little nicer to use than the output of zig translate-c.

Example

zig-swc includes a Zig translated version of the example compositor in swc, which can be ran as such:

zig build -Dexample=true
swc-launch zig-out/bin/example

API

Currently, zig-swc attempts to remain a close code format to zig-wayland, to encourage its usage inside Zig code over libwayland, however there is a style choices pertaining to the order of arguments in listeners, where no comptime type is given, but is inferred from the data argument, requiring it to be first in the argument list rather than after the handler function pointer seen in zig-wayland.