Zig interop makes it easy to use raylib

This page summarizes the projects mentioned and recommended in the original post on /r/Zig

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

    What I mentioned works specifically for zig build-exe (see output of zig build-exe -h). So perhaps zig build-exe -lc -lraylib -O ReleaseSmall --strip src/main.zig? Anyway it'd probably be easier to add to your build.zig, so something like exe.strip = true;. There's also https://github.com/ziglang/zig/issues/6676.

  • mach

    zig game engine & graphics toolkit

    Yeah, I'm always on the look for new graphics libraries, but there are far less good libraries out there than one may think. I tried sokol recently but it has a lot of problems that I don't find in raylib. raylib has a lot of disagreeable parts for me too, but at least it's extremely simple and very well maintained and you can get things done really quickly. The ultimate goal of course would be to go with something like https://github.com/hexops/mach that is actually written in Zig, but until that stuff evolves we will pretty much have to rely on external stuff (unless you specifically want to do very low-level graphics development in which case you could just interact with the APIs directly, of course).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts