Weave documentation
Rust referenceweave-locus

weave-locus · config

Source declarations, signatures and documentation for config.

Reviewed implementation boundary: Rollback records a marker; mount descriptions and governance metadata alone do not execute mounting or enforce signature authorization. Operations can have separate metadata/blob failure points. See /libraries/locus/overview.

Source: sigil/weave/models/locus/src/config.rs. SHA-256: 2b9e4f5e3a3068419d3bca5c43afe2ac245ba528ff080fc97b77a52439fa5324.

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::LocusConfig

Configuration for Locus file system

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct LocusConfig {
/// Maximum file size in bytes

pub max_file_size: u64,
/// Maximum path depth

pub max_path_depth: usize,
/// Enable file watching

pub enable_watching: bool,
/// Watch debounce duration

pub watch_debounce: Duration,
/// Enable symlinks

pub enable_symlinks: bool,
/// Maximum symlink depth

pub max_symlink_depth: usize,
/// Cache configuration

pub cache_size: usize,
/// Default file mode

pub default_file_mode: u32,
/// Default directory mode

pub default_dir_mode: u32,
/// Read-only mode. When true, `Locus::new` will not bootstrap the

/// root directory entry on the metadata Lens — useful for

/// receiver-side replication (e.g. `loom clone`) where the root is

/// expected to arrive via DHT replication of the source's metadata

/// strand.

#[serde(default)]
pub read_only: bool
}

Source line: 8.

config::MountOptions

Options for mounting a file system

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MountOptions {
/// Read-only mount

pub read_only: bool,
/// Allow execution

pub allow_exec: bool,
/// Follow symlinks

pub follow_symlinks: bool,
/// Case sensitivity

pub case_sensitive: bool
}

Source line: 64.

On this page