Skip to content

Would you consider building with Zig? #430

@inge4pres

Description

@inge4pres

Motivation

Zig has an interesting approach to building software, is interoperable with C and C++.
Despite not being stabilized yet, it shows great capabilities in multiple areas where precise control of resources is desirable.

Adding a build.zig and a build.zig.zon file to this repo would allow all users to build (and test, maybe) this project with the zig binary.
It would automatically allow the project to be packaged as a Zig dependency that other projects can use in their build scripts.

Implementation Plan

The zig build artifacts can co-exist with the CMake/bazel build currently in place.
What we would do:

  • Add the build files in the repo root
  • (optional) Create a build directory if the build script gets too hairy
  • Add a GitHub workflow that builds the project with the latest released version of Zig

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions