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
This library is currently undergoing rapid development and refactoring as we figure out the best API to expose. Bugs and missing features are
expected until a stable version is released. Issue reports, feature requests, and pull requests are all very welcome.
Prerequisites
Zig 0.17.0
Godot 4.7.2
Note: gdzig currently targets these exact Zig and Godot releases.
WebAssembly
WebAssembly is supported on the above Zig release via the wasm32-emscripten target:
zig build -Dtarget=wasm32-emscripten
See the example for a browser export preset and instructions.
Default builds discover the running engine version. To fold version gates,
interface lookups, and method-bind selection at compile time, select a measured
minimum:
zig build -Dgodot_compatibility_minimum=4.6
This is a floor, not an exact engine lock. Matching and newer engines are
accepted, and older engines are rejected during initialization. Bindings still
come from the current vendored API. With the option, gdzig.api_version points to the
constant effective floor rather than the actual runtime version. Cached minima
use the vendored metadata directly. An uncached minimum downloads that exact
stable Godot release to measure compatibility, without changing the API snapshot.
See the compatibility minimum guide for catalog
requirements, downstream build usage and limitations.