Zig build of libmaxminddb library.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-07-24 14:02:51 +03:00
.github/workflows init 2024-07-19 12:57:58 +03:00
src init 2024-07-19 12:57:58 +03:00
.gitattributes init 2024-07-19 12:57:58 +03:00
.gitignore init 2024-07-19 12:57:58 +03:00
build.zig fix: add UB flags 2024-07-24 14:02:51 +03:00
build.zig.zon init 2024-07-19 12:57:58 +03:00
LICENSE init 2024-07-19 12:57:58 +03:00
README.md fix: only remove lib part in the names of artifacts and modules 2024-07-19 13:34:08 +03:00

libmaxminddb

CI LC

Zig build of libmaxminddb library.

🚀 Usage

  • Add libmaxminddb dependency to build.zig.zon.
zig fetch --save https://github.com/allyourcodebase/libmaxminddb/archive/<git_tag_or_commit_hash>.tar.gz
  • Use libmaxminddb dependency in build.zig.
const libmaxminddb_dep = b.dependency("libmaxminddb", .{
    .target = target,
    .optimize = optimize,
});
const maxminddb_mod = libmaxminddb_dep.module("maxminddb");
<compile>.root_module.addImport("maxminddb", maxminddb_mod);