Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: streamline depending on zap by linking facil.io to module #99

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

leroycep
Copy link
Contributor

This means that all downstream users can simply put:

exe.root_module.addImport("zap", zap.module("zap"))`

in their build.zig instead of

exe.root_module.addImport("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));

This change should be backwards compatible. I updated some local code to use this change, and it didn't require any modifications to that build.zig. That means the old method will still work, but users will no longer have to manually link facil.io.

This means that all downstream users can simply put:

```zig
exe.root_module.addImport("zap", zap.module("zap"))`
```

in their `build.zig` instead of

```zig
exe.root_module.addImport("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
```
@renerocksai
Copy link
Member

Wow! Nice!

@renerocksai renerocksai merged commit 6d7d152 into zigzap:master Apr 24, 2024
2 checks passed
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