automerge-persistent-sled 0.4.0

A sled adapter for persisting Automerge documents
Documentation
A persister targetting [Sled](https://github.com/spacejam/sled). # Single persister ```rust # use automerge_persistent::PersistentAutomerge; # use automerge_persistent_sled::SledPersister; # use automerge_persistent_sled::SledPersisterError; # fn main() -> Result<(), SledPersisterError> { let db = sled::Config::new().temporary(true).open()?; let changes_tree = db.open_tree("changes")?; let documents_tree = db.open_tree("documents")?; let sync_states_tree = db.open_tree("sync-states")?; let persister = SledPersister::new(changes_tree, documents_tree, sync_states_tree, "")?; let doc = PersistentAutomerge::load(persister); # Ok(()) # } ``` # Multiple persisters sharing the same trees ```rust # use automerge_persistent::PersistentAutomerge; # use automerge_persistent_sled::SledPersister; # use automerge_persistent_sled::SledPersisterError; # fn main() -> Result<(), SledPersisterError> { let db = sled::Config::new().temporary(true).open()?; let changes_tree = db.open_tree("changes")?; let documents_tree = db.open_tree("documents")?; let sync_states_tree = db.open_tree("sync-states")?; let persister1 = SledPersister::new( changes_tree.clone(), documents_tree.clone(), sync_states_tree.clone(), "1", )?; let doc1 = PersistentAutomerge::load(persister1); let persister2 = SledPersister::new(changes_tree, documents_tree, sync_states_tree, "2")?; let doc2 = PersistentAutomerge::load(persister2); # Ok(()) # } ```