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

[FYI]Regarding zig-network installation #95

Open
g41797 opened this issue Oct 8, 2024 · 0 comments
Open

[FYI]Regarding zig-network installation #95

g41797 opened this issue Oct 8, 2024 · 0 comments

Comments

@g41797
Copy link
Contributor

g41797 commented Oct 8, 2024

Add zig-network to build.zig.zon:

zig fetch --save=network git+https://github.com/ikskuh/zig-network

Import zig-network:

    const zig_network = b.dependency("network", .{
        .target = target,
        .optimize = optimize,
    });

    const lib = b.addStaticLibrary(..);
    lib.root_module.addImport("network", zig_network.module("network"));

    const lib_unit_tests = b.addTest(...);
    lib_unit_tests.root_module.addImport("network", zig_network.module("network"));
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

No branches or pull requests

1 participant