Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Nov 30, 2024
1 parent e9f6062 commit 7fc9907
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 3,102 deletions.
7 changes: 3 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});

const msgpack = b.addModule("msgpack", .{
.root_source_file = b.path("lib/msgpack/msgpack.zig"),
const msgpack = b.dependency("msgpack", .{
.target = target,
.optimize = optimize,
});
Expand All @@ -46,7 +45,7 @@ pub fn build(b: *std.Build) void {
main_exe.root_module.addImport("httpz", httpz.module("httpz"));
main_exe.root_module.addImport("metrics", metrics.module("metrics"));
main_exe.root_module.addImport("zul", zul.module("zul"));
main_exe.root_module.addImport("msgpack", msgpack);
main_exe.root_module.addImport("msgpack", msgpack.module("msgpack"));

b.installArtifact(main_exe);

Expand All @@ -70,7 +69,7 @@ pub fn build(b: *std.Build) void {
main_tests.root_module.addImport("httpz", httpz.module("httpz"));
main_tests.root_module.addImport("metrics", metrics.module("metrics"));
main_tests.root_module.addImport("zul", zul.module("zul"));
main_tests.root_module.addImport("msgpack", msgpack);
main_tests.root_module.addImport("msgpack", msgpack.module("msgpack"));

const run_main_tests = b.addRunArtifact(main_tests);

Expand Down
4 changes: 4 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
.url = "git+https://github.com/karlseguin/metrics.zig?ref=zig-0.13#fcf9e94fa54a20f4954e9821801c32e44d407a2f",
.hash = "12201776681f1e5ec6df7df30786e90771c5de564c941a309c73c4299c7864ddb4c3",
},
.msgpack = .{
.url = "git+https://github.com/lalinsky/msgpack.zig?ref=main#7c0a9846b33063199e56e50d683b4ca8785c773e",
.hash = "12207a2d5cff5690049e70a0ce65c8a7b67bf385abc3acf86caa42db2a921c83a269",
},
},
.paths = .{
"build.zig",
Expand Down
19 changes: 0 additions & 19 deletions lib/msgpack/LICENSE.txt

This file was deleted.

64 changes: 0 additions & 64 deletions lib/msgpack/README.md

This file was deleted.

Loading

0 comments on commit 7fc9907

Please sign in to comment.