In PR 4082, the daemon had its output capture functionality split into two backends: fjall, and nop. The reason behind nop is trivially obvious. The reason behind a data store, in general, is obvious too; but less for the specific implementation, or even the choice to go KV.
From what I can gather, the output_capture module just.. captures command output, for later use. It does fit well in a KV database, though it’s probably also okay-ish to reside in a SQL database, like SQLite, as TEXT blobs.
The reasoning behind using fjall is unclear to me. It’s not a big deal, but does pose some extra efforts in packaging: 7 unpackaged dependencies (might be able to get rid of one or two), 8 trips through NEW.
Compared, rocksdb, which fjall itself describes as being similar to, is readily available in Debian (more precisely, the C lib and the Rust bindings crate), and I suppose similarly in other distros.
lmdb is a similar alternative just like rocksdb, with C lib and Rust bindings readily available.
redb is a pure Rust KV database, not packaged yet, but only one package and NEW trip away.
SQLite is an interesting alternative: not a KV database by strict definition, but stores a few thousands of KV-like records just fine, without further requirements.
There’s also the problem of how many backends are enough. This does not seem like a use case to have multiple, competing backends. At most, SQLite/KV/nop, and only when SQLite is meaningfully different than KV to the user.
This all comes down to the design and expectation of the module/functionality, not merely “the dependency is not packaged”.
At the very least, we could always patch this feature out first, as it seems to be disabled by default at the moment. This is mostly a curiosity and preparation for later when it’s being enabled.