diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,7 @@ //! continuum: a replicated Automerge document, read and written by path, synchronized -//! over Mycelium, libp2p or Tor; as a library, which the node (`main.rs`) runs (`run`). +//! over Mycelium, libp2p or Tor; as a library, which the node (`main.rs`) runs (`run`), +//! and, behind the `federation` feature, a party's client (`bin/continuum-party.rs`, +//! `party`). //! //! `run` only wires things together: arguments, the starting document, the node //! (`node`), bootstrap and the HTTP server. @@ -42,6 +44,12 @@ use document::replica::Epoch; use swarm::bootstrap; use transport::Transport; +/// Runs a party's client of a federation (`continuum-party`), as its arguments say. +#[cfg(feature = "federation")] +pub async fn party() -> Result<()> { + federation::party::main().await +} + /// Runs a node, as its arguments and configuration say, until it stops. pub async fn run() -> Result<()> { logging::init(); |
