vclock 0.2.1

VClock is an experimental vector clock.
Documentation

VClock

VClock is an experimental vector clock implemented in Rust.

It offers a partial order of events in a distributed system. In practice, it implements the rust partial order trait over hash maps which maintain an integer count of each modification, per key.

VClock icon

Status

For now this is a toy project, clearly NOT suitable for production use.

Build Status

Usage

use vclock::VClock;

let c1 = VClock::new("a");     // c1 is now a:1
let mut c2 = VClock::new("b"); // c2 is now b:1
c2.incr("a");                  // c1 is now a:1,b:1
assert!(c1 < c2, "c1 is a parent of c2");

Links

License

VClock is licensed under the MIT license.