this post was submitted on 13 Feb 2024
4 points (83.3% liked)

Zig Programming Language

160 readers
3 users here now

A lemm.ee community for Zig!

founded 1 year ago
MODERATORS
 

From the README:

zbind generates TypeScript bindings for calling Zig code compiled to native code or Wasm, in Node.js or Bun or browsers.

Example Zig code lib/main.zig:

const std = @import("std");
const zbind = @import("zbind");

pub fn hello(name: []const u8) void {
    std.debug.print("Hello, {s}!\n", .{ name });
}

pub fn main() void {}

comptime {
    zbind.init(@This());
}
no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here