Crates.io | automerge_repo |
lib.rs | automerge_repo |
version | 0.2.0 |
source | src |
created_at | 2023-12-19 10:18:17.693687 |
updated_at | 2024-11-28 15:49:14.31398 |
description | A rust implementation of automerge-repo |
homepage | |
repository | https://github.com/automerge/automerge-repo-rs |
max_upload_size | |
id | 1074166 |
size | 472,698 |
Project goal: add an integration layer between Automerge and client code, compatible with any Rust async runtime.
cargo run --example tcp-example --features="tokio" -- --tcp-run-ip 127.0.0.1:2345 --http-run-ip 0.0.0.0:3001
cargo run --example tcp-example --features="tokio" -- --other-ip 127.0.0.1:2345 --http-run-ip 0.0.0.0:3002
curl 0.0.0.0:3001/new_doc
curl --json '{document-id}' 0.0.0.0:3002/request_doc
(document id argument should look like'"f9b1a2c6-ca05-4fc7-a02f-7e3d83f1bb49"'
)An implementation of the distributed bakery algorithm, based on this TLA+ specification.
cargo run --release --example distributed-bakery --features="tokio" -- --bootstrap --customer-id "1"
cargo run --release --example distributed-bakery --features="tokio" -- --customer-id "2"
cargo run --release --example distributed-bakery --features="tokio" -- --customer-id "3"