Commit 4b59541
feat(clients): add Zig client SDK with C ABI
New Zig HTTP client for verisim-api with thin C ABI wrapper so other
languages (including hypatia's Rust data layer) can depend on a single
FFI surface instead of each rolling their own HTTP client.
- src/root.zig — native Zig client (create/get/update/delete octad, health, vql_execute)
- src/c_abi.zig — extern "C" wrappers: verisimdb_health, verisimdb_create_octad, …, verisimdb_free
- include/verisimdb_client.h — hand-authored C header for downstream consumers
- tests/test_client.zig — 9 integration tests against live verisim-api
- build.zig + build.zig.zon — produces libverisimdb_zig.{a,so}
Aligns with the hyperpolymath ABI/FFI standard (Idris2 ABI + Zig FFI).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 94f356b commit 4b59541
29 files changed
Lines changed: 4358 additions & 0 deletions
File tree
- connectors/clients/zig
- .zig-cache
- h
- o
- 22760fdc8c6b76c49a48a0d51d071074
- 2a03759c22ff1e9903d3f7021f396fc9
- 98407ddee78528e9d3ed2f64d89f4624
- d588a55adaacbfea1636763b3611cc13
- f1ea4330472a4c6ebcbfed6922919020
- z
- include
- src
- tests
- zig-out
- include
- lib
Lines changed: 538 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 839 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 838 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 838 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Whitespace-only changes.
Binary file not shown.
0 commit comments