Skip to content

Add missing root module dependencies - #1000

Open
piotrfila wants to merge 3 commits into
ZigEmbeddedGroup:mainfrom
piotrfila:passthrough-modules
Open

Add missing root module dependencies#1000
piotrfila wants to merge 3 commits into
ZigEmbeddedGroup:mainfrom
piotrfila:passthrough-modules

Conversation

@piotrfila

Copy link
Copy Markdown
Contributor

Right now it's a bit cumbersome to use one of microzig's modules - you have to clone the repo locally or add it as a git submodule and import it by path.

This PR exports all the modules in the root build.zig.

I'm not sure if updating all of microzig to import modules through the root project is a good idea - if we leave the imports as they are (by path) it's easier to override them for development (with zig command line options).

Also, I still need to find a good way to re-export libraries, not just modules

@mattnite
mattnite force-pushed the passthrough-modules branch from bf24e59 to cde489c Compare August 9, 2026 02:01
@mattnite
mattnite force-pushed the passthrough-modules branch from cde489c to 9d672a5 Compare August 9, 2026 03:54
@mattnite

mattnite commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

I chatted to a friend outside the project about this, and ultimately I think we need to return to creating tarballs, but generating them far more often (like every push to main). This gets us the lazy dependencies and the standalone modules. It's either that or we contribute package manager features to Zig.

Comment thread build.zig Outdated
@piotrfila piotrfila changed the title wip: Export modules Add missing root module dependencies Aug 10, 2026
@piotrfila

Copy link
Copy Markdown
Contributor Author

@mattnite Is this what you have in mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants