Skip to content

LittleBigRefresh/refresh-api-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

refresh-zig-api

Zig bindings for the Refresh v3 API

We target the latest Mach Nominated Version.

Using through the package manager

Add the following dependency to your build.zig.zon

.refresh_api = .{
    .url = "git+https://github.com/LittleBigRefresh/refresh-api-zig#REPLACE_WITH_LATEST_COMMIT_HASH",
},

You will recieve an error, telling you to add a hash field to the dependency, do so.

Next, add the following to your build.zig

const refresh_api_zig = b.dependency("refresh_api", .{});

exe = b.addExecutable(...);
exe.addModule("api", refresh_api_zig.module("refresh-api-zig"));

Then, in your source code, you can import the API as such

const Api = @import("api");

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages