Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allyourcodebase/libmaxminddb
Zig build of libmaxminddb library.
https://github.com/allyourcodebase/libmaxminddb
libmaxminddb maxmind maxmind-db maxminddb zig zig- zig-build zig-package ziglang
Last synced: about 2 months ago
JSON representation
Zig build of libmaxminddb library.
- Host: GitHub
- URL: https://github.com/allyourcodebase/libmaxminddb
- Owner: allyourcodebase
- License: mit
- Created: 2024-07-19T10:01:19.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-24T11:03:04.000Z (6 months ago)
- Last Synced: 2024-10-16T19:21:08.885Z (3 months ago)
- Topics: libmaxminddb, maxmind, maxmind-db, maxminddb, zig, zig-, zig-build, zig-package, ziglang
- Language: Zig
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libmaxminddb
[![CI][ci-shd]][ci-url]
[![LC][lc-shd]][lc-url]## Zig build of [libmaxminddb library](https://github.com/maxmind/libmaxminddb).
### :rocket: Usage
- Add `libmaxminddb` dependency to `build.zig.zon`.
```sh
zig fetch --save https://github.com/allyourcodebase/libmaxminddb/archive/.tar.gz
```- Use `libmaxminddb` dependency in `build.zig`.
```zig
const libmaxminddb_dep = b.dependency("libmaxminddb", .{
.target = target,
.optimize = optimize,
});
const maxminddb_mod = libmaxminddb_dep.module("maxminddb");
.root_module.addImport("maxminddb", maxminddb_mod);
```[ci-shd]: https://img.shields.io/github/actions/workflow/status/allyourcodebase/libmaxminddb/ci.yaml?branch=main&style=for-the-badge&logo=github&label=CI&labelColor=black
[ci-url]: https://github.com/allyourcodebase/libmaxminddb/blob/main/.github/workflows/ci.yaml
[lc-shd]: https://img.shields.io/github/license/allyourcodebase/libmaxminddb.svg?style=for-the-badge&labelColor=black
[lc-url]: https://github.com/allyourcodebase/libmaxminddb/blob/main/LICENSE