colla 0.1.0

Operational Transformation library for nested documents with text and rich-text
Documentation
1
2
3
4
5
6
7
8
9
use colla::Value;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let value = Value::map([("title", Value::text("hello"))])?;
    let bytes = value.encode();
    let decoded = Value::decode(&bytes)?;
    assert_eq!(decoded, value);
    Ok(())
}