weave-agentfs-mirror · sparse
Source declarations, signatures and documentation for sparse.
Reviewed implementation boundary: The mirror plan executor contains NotImplemented paths. A generated plan is not a successfully synchronized remote filesystem. See /libraries/agentfs-mirror/overview.
Source: sigil/weave/local/agentfs-mirror/src/sparse.rs. SHA-256: a742d6a521d919cf11a3522557d1fa9710887addde7a23c59ad37b4b5a5b069d.
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.
sparse::SparseOptions
Sparse sync options
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SparseOptions {
/// Only sync requested paths
pub paths: Vec<PathBuf>,
/// Include dependencies
pub include_deps: bool,
/// Depth limit for directory sync
pub max_depth: Option<usize>,
/// Only sync files matching patterns
pub include_patterns: Vec<String>,
/// Exclude patterns
pub exclude_patterns: Vec<String>,
/// Minimum file size to sync
pub min_size: Option<u64>,
/// Maximum file size to sync
pub max_size: Option<u64>
}Source line: 10.
sparse::SparseSync
Sparse sync engine
#[derive(Debug, Clone)]
pub struct SparseSync {
}Source line: 49.
sparse::SparseSync::new
Create new sparse sync engine
pub fn new(options: SparseOptions) -> Self;Source line: 56.
sparse::SparseSync::should_sync
Check if path should be synced
pub fn should_sync(&self, path: &Path) -> bool;Source line: 64.
sparse::SparseSync::mark_synced
Mark path as synced
pub fn mark_synced(&mut self, path: PathBuf);Source line: 112.
sparse::SparseSync::is_synced
Check if path was already synced
pub fn is_synced(&self, path: &Path) -> bool;Source line: 117.
sparse::SparseSync::get_dependencies
Get list of dependencies for a path
pub async fn get_dependencies(&self, _path: &Path) -> Result<Vec<PathBuf>>;Source line: 122.