@@ -30,8 +30,7 @@ pub fn build(b: *std.Build) void {
30
30
.optimize = optimize ,
31
31
});
32
32
33
- const msgpack = b .addModule ("msgpack" , .{
34
- .root_source_file = b .path ("lib/msgpack/msgpack.zig" ),
33
+ const msgpack = b .dependency ("msgpack" , .{
35
34
.target = target ,
36
35
.optimize = optimize ,
37
36
});
@@ -46,7 +45,7 @@ pub fn build(b: *std.Build) void {
46
45
main_exe .root_module .addImport ("httpz" , httpz .module ("httpz" ));
47
46
main_exe .root_module .addImport ("metrics" , metrics .module ("metrics" ));
48
47
main_exe .root_module .addImport ("zul" , zul .module ("zul" ));
49
- main_exe .root_module .addImport ("msgpack" , msgpack );
48
+ main_exe .root_module .addImport ("msgpack" , msgpack . module ( "msgpack" ) );
50
49
51
50
b .installArtifact (main_exe );
52
51
@@ -70,7 +69,7 @@ pub fn build(b: *std.Build) void {
70
69
main_tests .root_module .addImport ("httpz" , httpz .module ("httpz" ));
71
70
main_tests .root_module .addImport ("metrics" , metrics .module ("metrics" ));
72
71
main_tests .root_module .addImport ("zul" , zul .module ("zul" ));
73
- main_tests .root_module .addImport ("msgpack" , msgpack );
72
+ main_tests .root_module .addImport ("msgpack" , msgpack . module ( "msgpack" ) );
74
73
75
74
const run_main_tests = b .addRunArtifact (main_tests );
76
75
0 commit comments