The current API only accepts source files. A usable language ruleset needs a dependency model.
Current code:
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
The current API only accepts source files. A usable language ruleset needs a dependency model.
Current code:
zig/rules.bzlTasks:
depsattributes tozig_libraryandzig_binary.Acceptance criteria:
zig_librarycan depend on anotherzig_library.zig_binarycan depend on one or morezig_librarytargets.Parent issue: #3