Skip to content

jcs-PR/zig-flx

 
 

Repository files navigation

License: MIT Release

zig-flx

Zig bindings for flx-c

Docs CI

🔧 Usage

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

pub fn main() !void {
    const result = flx.score("switch-to-buffer", "stb");
    std.debug.print("Score: {d}", .{result.*.score});
}

💾 Installation

  1. Add the dependency to the build.zig.zon of your project.
.dependencies = .{
    .flx = .{
        .url = "https://github.com/jcs090218/zig-flx/archive/9370accf3bb09a9e27a8c3a6ed7181cecc6679be.tar.gz",
        .hash = "12205a4519fc774374102a05b52a460e4598019dc775d7fb535517171a45abad3a08",
    },
},
  1. Add the dependency and module to your build.zig.
const flx_dep = b.dependency("flx", .{});
const flx_mod = flx_dep.module("flx");
exe.addModule("flx", flx_mod);
  1. Import it inside your project.
const flx = @import("flx");

📝 P.S. See examples for full example!

⚜️ License

zig-flx is distributed under the terms of the MIT license.

See LICENSE for details.

Releases

No releases published

Packages

No packages published

Languages

  • Zig 98.0%
  • C 2.0%