Skip to content

zml/rules_zig upstreaming #480

@steeve

Description

@steeve

Hi Andreas,

We have a few modifications in https://github.com/zml/rules_zig/commits/zml/ for convenience but it's time to upstream them imho.

Probably the most controversial one is we renamed zig_module to zig_library to be closer to the bazel nomenclature. This is a breaking change but IMHO a worthy one.

I am also proposing the following rules that we are working on in our fork:

  • zig_library -> zig_static_library
  • zig_cc_binary: builds a static library to uses rules_cc for linking (useful on macos notably where the linker was slow or for extra customisation)
  • zig_cc_{static,shared}_library: same for static and shared library (closer to what rules_cc to moving to)

We also have zls completion support, unified C libraries support (aggregating the CcInfos into one namespace and calling translate-c on it, which is useful when types are shared between libraries in the C namespace).

What do you think ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions