| Crates.io | d-engine-core |
| lib.rs | d-engine-core |
| version | 0.2.2 |
| created_at | 2026-01-02 02:14:48.897154+00 |
| updated_at | 2026-01-14 15:03:04.587567+00 |
| description | Pure Raft consensus algorithm - for building custom Raft-based systems |
| homepage | https://github.com/deventlab/d-engine |
| repository | https://github.com/deventlab/d-engine |
| max_upload_size | |
| id | 2017821 |
| size | 1,983,074 |
Pure Raft consensus algorithm - for building custom Raft-based systems
Use d-engine instead.
This crate contains the pure Raft consensus algorithm used internally by d-engine. The API is unstable before v1.0.
# ❌ Don't use this directly
[dependencies]
d-engine-core = "0.2"
# ✅ Use this instead
[dependencies]
d-engine = "0.2"
This crate provides the core Raft consensus algorithm:
Reference integration: See how d-engine-server uses this crate.
Key traits to understand:
StorageEngine - Persistent storage for Raft logsStateMachine - Application-specific state transitionsLogStore - Log entry persistenceMetaStore - Metadata persistence (term, voted_for)See the API documentation for detailed trait definitions.
Post-1.0 goal: Become a standalone Raft library with stable API.
Current status: Internal to d-engine, API may change between minor versions.
For understanding d-engine internals:
MIT or Apache-2.0