post-cortex-storage
Storage backends for post-cortex. Provides the [Storage] trait plus the lock-free RocksDB backend ([RealRocksDBStorage]) and an optional SurrealDB backend behind the surrealdb-storage feature.
Install
[]
= "0.2" # RocksDB only
= { = "0.2", = ["surrealdb-storage"] } # + SurrealDB
Features
| Feature | Default | What it enables |
|---|---|---|
surrealdb-storage |
no | SurrealDB backend (kv-mem + protocol-ws) |
surrealdb-tikv |
no | SurrealDB with TiKV distributed KV |
otel |
no | OpenTelemetry instrumentation hooks |
The RocksDB backend is always compiled — it's the post-cortex default and what the daemon ships with.
Example
use ;
use Arc;
# async
License
MIT — see LICENSE.