Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 554 Bytes

File metadata and controls

25 lines (18 loc) · 554 Bytes

blst packaged for Zig

Usage

zig fetch --save git+https://github.com/ChainSafe/blst.zig.git
const blst_dep = b.dependency("blst", .{
    .target = target,
    .optimize = optimize,
});

your_exe.root_module.addImport("blst", blst_dep.module("blst"));

The module contains the translated declarations from blst.h and blst_aux.h, and links the native library automatically:

const blst = @import("blst");

const generator = blst.blst_p1_generator();