Midge 0.1.0 is an embedded Rust 2021 LSM key-value engine. It uses explicit
transactions and explicit write durability policies. The crate MSRV is Rust
1.97.
The supported storage constructors are OpenOptions::in_memory(),
OpenOptions::local(path), OpenOptions::cloud(...), and
OpenOptions::cloud_simulated(...). The real cloud providers are optional,
pre-1.0 integrations. CloudSimulated is a local filesystem simulation for
cloud lifecycle tests; it is not a cloud service.
Midge is single-process embedded storage. The 0.x API and operational contract may change. Cloud-backed production use is not endorsed by this release line.
use std::time::Duration;
use cntryl_midge::{Engine, OpenOptions, TransactionMode, WriteOptions};
let mut engine = Engine::open(OpenOptions::local("./db").build()?)?;
let cf = engine.get_column_family("default").unwrap();
let mut tx = engine.begin_tx(cf.id(), TransactionMode::ReadWrite)?;
tx.put(b"hello".to_vec(), b"world".to_vec(), None)?;
tx.commit(WriteOptions::sync())?;
engine.shutdown(Duration::from_secs(5))?;
# Ok::<(), Box<dyn std::error::Error>>(())The executable canonical example is examples/documented_quick_start.rs.
- Users: overview → quick start → API guide.
- Durability: transaction durability contract → recovery internals.
- Contributors: architecture → invariants → testing.
- Operators: operator runbook and cloud setup.
See docs/README.md for the complete current inventory.