Skip to content

Add deps support to zig_library and zig_binary #10

@darthfork

Description

@darthfork

The current API only accepts source files. A usable language ruleset needs a dependency model.

Current code:

  • zig/rules.bzl

Tasks:

  • Design provider flow for Zig libraries.
  • Add deps attributes to zig_library and zig_binary.
  • Ensure transitive source/archive information is propagated correctly.
  • Decide how local package/module imports map onto Bazel dependencies.

Acceptance criteria:

  • zig_library can depend on another zig_library.
  • zig_binary can depend on one or more zig_library targets.
  • Example targets demonstrate dependency composition.

Parent issue: #3

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