Dependencies
Detent is assembled from small, single-purpose libraries, most of them
extracted from Xapiand into standalone
repositories. Everything is fetched with CMake FetchContent.
Detent’s Own Targets
Section titled “Detent’s Own Targets”| Target | Depends on | Purpose |
|---|---|---|
detent | the core libraries below | Client, schema, evaluation, overrides, file source |
detent::local_client | detent, local view | Managed generation reader |
detent deliberately has no networking dependency, and the test suites link
the daemon libraries directly instead of spawning subprocesses.
Libraries
Section titled “Libraries”| Library | Role in Detent |
|---|---|
| atomic-shared-ptr | Lock-free snapshot publication |
| sha256 + endian | Stable rollout bucket |
| char-classify | Knob-name validation |
| strict-stox | Strict integer parsing |
| random | Full-jitter backoff |
| compressors | zstd and gzip encoding and decoding |
| RapidJSON | Strict JSON parsing, pinned to a post-1.1.0 commit |
| http + reactor, http-parser, radix-router | detent-authority’s HTTP server; handlers are task::task coroutines |
| task | The one coroutine type, bound to Asio |
| consensus | Durable Raft for the authority, with journal and completion I/O |
| logger | Daemon logging |
| Asio | Networking, pulled in by http and consensus |
| OpenSSL 3.0+ | TLS for the authority and managed delivery |
Every Kronuz dependency is pinned by commit in
cmake/dependencies.json,
and CI fails if a pin differs from the pin of a library that declares the same
dependency. As of November 4 each Kronuz pin is its library’s default-branch
head, outside every range its upgrade guide marks as broken. RapidJSON is pinned
to commit 24b5e7a8, because the 1.1.0 release doesn’t compile with Clang 23.
The old and new pin of every library, and what changed for Detent, are in the
changelog.
Binary Size
Section titled “Binary Size”detent-agent on macOS/arm64:
| Build | Size |
|---|---|
Default (no CMAKE_BUILD_TYPE) | 1.15 MB |
Release | 295 KB |
Release + strip -x | 242 KB |
Most of the remaining size is RapidJSON and ordinary C++ runtime support.