| Crates.io | apfsds-raft |
| lib.rs | apfsds-raft |
| version | 0.2.0 |
| created_at | 2026-01-18 02:50:08.466988+00 |
| updated_at | 2026-01-18 02:50:08.466988+00 |
| description | Raft consensus layer for APFSDS distributed coordination |
| homepage | |
| repository | |
| max_upload_size | |
| id | 2051659 |
| size | 96,219 |
Raft consensus implementation for APFSDS distributed cluster.
async-raft crateuse apfsds_raft::{RaftNode, RaftConfig};
let config = RaftConfig {
node_id: 1,
peers: vec!["192.168.1.2:25347", "192.168.1.3:25347"],
data_dir: "/var/lib/apfsds/raft".into(),
};
let node = RaftNode::new(config).await?;
// Propose a command (leader only)
node.propose(command).await?;
// Query cluster state
let leader = node.current_leader().await;
[raft]
node_id = 1
peers = ["192.168.1.2:25347", "192.168.1.3:25347"]
data_dir = "/var/lib/apfsds/raft"
MIT