Skip to content

Installation


  • matryoshka-tk - is name of the project/repository
  • matryoshka - is name of the module

Add Matryoshka-Tk to build.zig.zon:

zig fetch --save git+https://github.com/g41797/matryoshka-tk

Add matryoshka-tk to build.zig:

Add dependency
    const tofu: *build.Dependency = b.dependency("matryoshka", .{
        .target = target,
        .optimize = optimize,
    });

For any xyz_mod module that uses matryoshka, add the following code
    xyz_mod.addImport("matryoshka", tofu.module("matryoshka"));
Import matryoshka
pub const matryoshka = @import("matryoshka");