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

Expose zig-tls12 as a module #4

Merged
merged 1 commit into from
Jan 27, 2024
Merged

Expose zig-tls12 as a module #4

merged 1 commit into from
Jan 27, 2024

Conversation

Cloudef
Copy link
Contributor

@Cloudef Cloudef commented Jan 27, 2024

Static lib does not make much sense as no C API is being exposed, we would have to import the .zig file defeating the whole purpose.

Closes #3

Static lib does not make much sense as no C API is being exposed, we
would have to import the .zig file defeating the whole purpose.
@Cloudef
Copy link
Contributor Author

Cloudef commented Jan 27, 2024

zig-tls12 can now be used with package manager like this:

build.zig.zon:

.tls12 = .{
   .url = "https://github.com/Cloudef/zig-tls12/archive/84bd5e3336f939e87f08a7b22fa05c312eed5932.tar.gz",
   .hash = "122073b50ab99ec3e67f0f22cc9284475059701dad68a9c136dea38c3ba990e1151d",
},

build.zig:

const tls12 = b.dependency("tls12", .{ .target = target, .optimize = optimize });
step.root_module.addImport("tls12", tls12.module("zig-tls12"));

@melonedo melonedo merged commit 35be926 into melonedo:main Jan 27, 2024
@melonedo
Copy link
Owner

Thanks!

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.

Provide the zig-tls as a module rather than static library
2 participants