Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 585 Bytes

File metadata and controls

30 lines (21 loc) · 585 Bytes

libvec - Vector Utilities

General helpers, utilities, and convenience function for working with vectors

Installation

Run

zig fetch --save=vec https://github.com/Trevor-Strong/zig-libvec/archive/refs/tags/0.3.0.tar.gz

And in your build.zig:

fn build(b: *std.Build) void {
    const target = b.standardTargetOptions(.{});
    const optimize = b.standardOptimizeOption(.{});

    // ...

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

    // ...

    your_module.addImport("vec", vec.module("vec"));
}