-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
[FYI]Regarding zig-network installation #95
Comments
Can you expand the arguments for b.addStaticLibrary ? const network_dep = b.dependency("network", .{
.target = target,
.optimize = optimize,
});
const network_lib = b.addStaticLibrary(.{
.name = "network",
.target = target,
.optimize = optimize
});
network_lib.root_module.addImport("network", network_dep.module("network")); I am unable to find up-to-date information on the package manager, so maybe I'm not filling the arguments correctly, or perhaps this is not up to date. |
May be build.zig will help |
@payolin Were you able to get this to work? Just going through this myself right now and whatever you ended up with could be useful |
I have not. Running the build.zig g41797 provided (minus the mailbox and datetime libs) does not work, complaining that there is no module network available within module root. I am looking into it further. |
Good news! I asked the guys on the zig discord server nicely and they outlined it better than I ever could. polylokh (@polylokh_39446) @ 22:32 UTC 2024-12-01:
all that's added there is the zig_network from that issue, which is added here to the single exe that's built
use |
did you add dependencies to build.zig.zon via zig fetch? |
Alright, got it working, thanks @illegitimate-egg |
Add zig-network to build.zig.zon:
Import zig-network:
The text was updated successfully, but these errors were encountered: