Weave documentation
Rust referenceweave-weft

weave-weft · live

Source declarations, signatures and documentation for live.

Reviewed implementation boundary: Producer signatures must be computed over the exact manifest before validate/from_bytes or publication; an empty signature is rejected. Reader interfaces do not establish constant-memory storage, and chain reference metadata alone does not submit or prove anchoring. See /libraries/weft/publish.

Source: sigil/weave/models/weft/src/live.rs. SHA-256: 41b130325d8a55558c8a9da65aee24ed2e86ca5cfdddf406c1b075a693e5517c.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

Module condition:

#[cfg(feature = "dht")]

live::PRIMARY_TRIO_DNS4

Live primary trio bootstrap multiaddrs (dns4) — warm spares untouched.

#[cfg(feature = "dht")]
pub const PRIMARY_TRIO_DNS4: &[&str];

Source line: 23.

live::store_from_handle

Wrap an existing shared [weave_dht::DhtHandle] (e.g. from NetworkManager).

This is the production constructor. Callers that already own a live handle from WeaveNode::start_network() must use this — no second bootstrap.

#[cfg(feature = "dht")]
pub fn store_from_handle(handle: weave_dht::DhtHandle) -> WeftDhtStore<weave_dht::DhtHandle>;

Source line: 33.

live::LiveWeftDht

Result of a standalone live DHT connect (keeps the swarm task alive).

#[cfg(feature = "dht")]
pub struct LiveWeftDht {
/// Running DHT node — drop last to shut down the swarm.

pub node: weave_dht::DhtNode,
/// Weft adapter over the node handle.

pub store: WeftDhtStore<weave_dht::DhtHandle>
}

Source line: 38.

live::LiveWeftDht::handle

Borrow the underlying DHT handle (for sharing with other adapters).

#[cfg(feature = "dht")]
pub fn handle(&self) -> weave_dht::DhtHandle;

Source line: 47.

live::LiveWeftDht::peer_id_string

Local libp2p peer id string.

#[cfg(feature = "dht")]
pub fn peer_id_string(&self) -> String;

Source line: 52.

live::connect_primary_trio

Start a standalone DHT client bootstrapped to the live primary trio.

Prefer [store_from_handle] when a WeaveNode / NetworkManager already owns the mesh. This helper is for library dogfood / prove binaries only.

#[cfg(feature = "dht")]
pub async fn connect_primary_trio() -> Result<LiveWeftDht>;

Source line: 61.

live::connect_with_bootstrap

Start a standalone DHT client with explicit bootstrap multiaddrs.

#[cfg(feature = "dht")]
pub async fn connect_with_bootstrap(bootstrap: &[&str]) -> Result<LiveWeftDht>;

Source line: 66.

On this page