weave-sdk · config
Source declarations, signatures and documentation for config.
Source: sigil/weave/libs/weave-sdk/src/config.rs. SHA-256: 55b1dc78dc74c59505ca766898cd9ff431f561fbaf2eaff0eb91c94959b1d1ec.
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.
config::WeaveConfig
Configuration for a Weave node.
#[derive(Debug, Clone)]
pub struct WeaveConfig {
/// Root storage directory for all Weave data.
pub storage_dir: PathBuf,
/// DHT bootstrap peers (multiaddr format).
pub bootstrap_peers: Vec<String>,
/// Port for the DHT listener.
pub dht_port: u16,
/// Whether to enable mDNS for local peer discovery.
pub enable_mdns: bool,
/// Whether to enable relay protocol for NAT traversal.
pub enable_relay: bool,
/// Maximum number of concurrent peer connections.
pub max_peers: usize,
/// Agent DID (set after identity creation).
pub agent_did: Option<String>
}Source line: 5.
config::WeaveConfig::local_dev
Create config for local development (mDNS only, no bootstrap).
pub fn local_dev() -> Self;Source line: 45.
config::WeaveConfig::with_bootstrap
Create config with specific bootstrap peers.
pub fn with_bootstrap(mut self, peers: Vec<String>) -> Self;Source line: 55.
config::WeaveConfig::with_storage_dir
Set the storage directory.
pub fn with_storage_dir(mut self, dir: impl Into<PathBuf>) -> Self;Source line: 61.
config::WeaveConfig::with_port
Set the DHT listen port.
pub fn with_port(mut self, port: u16) -> Self;Source line: 67.
config::WeaveConfig::strands_dir
Resolve the path for strands storage.
pub fn strands_dir(&self) -> PathBuf;Source line: 73.
config::WeaveConfig::lens_dir
Resolve the path for Lens databases.
pub fn lens_dir(&self) -> PathBuf;Source line: 78.
config::WeaveConfig::locus_dir
Resolve the path for Locus filesystems.
pub fn locus_dir(&self) -> PathBuf;Source line: 83.
config::WeaveConfig::identity_dir
Resolve the path for identity/keys.
pub fn identity_dir(&self) -> PathBuf;Source line: 88.
config::WeaveConfig::forum_dir
Resolve the path for Forum tuple spaces.
pub fn forum_dir(&self) -> PathBuf;Source line: 93.
config::WeaveConfig::gnosis_dir
Resolve the path for Gnosis knowledge graphs.
pub fn gnosis_dir(&self) -> PathBuf;Source line: 98.
config::WeaveConfig::basis_dir
Resolve the path for Basis vector stores.
pub fn basis_dir(&self) -> PathBuf;Source line: 103.
config::WeaveConfig::nexus_dir
Resolve the path for Nexus multi-writer views.
pub fn nexus_dir(&self) -> PathBuf;Source line: 108.
config::WeaveConfig::dht_dir
Resolve the path for DHT persistent storage.
pub fn dht_dir(&self) -> PathBuf;Source line: 113.