Skip to main content

Crate weavatrix_scan

Crate weavatrix_scan 

Source
Expand description

Deterministic, safe repository scanning for code-intelligence tools.

weavatrix-scan never executes repository code or reads outside the repository boundary. Symbolic links are skipped by default and guarded by boundary/cycle checks when explicitly enabled.

Use ScanReport::to_portable to cross trust boundaries without exposing host paths, and ScanReport::content_provider to reopen selected content with snapshot verification.

Structs§

CancellationToken
A cheap, thread-safe cancellation signal shared by walkers and scanners.
ChangedContentVisitReport
Content and removals produced by a safe file-only watcher plan.
CompactContentEvidence
Optional rich evidence kept out of metadata-only compact entries.
CompactScanReport
Memory-efficient deterministic manifest retaining the root path once.
CompactScannedFile
Selected-file evidence without a duplicated absolute path allocation.
ContentFile
Stable identity and discovery evidence for one selected file.
ContentVisitReport
Summary of a parallel, one-pass selected-content visit.
FileIdentity
FileVersion
IgnoreFile
IgnorePolicy
Controls every supported source of repository selection rules.
IgnoreSourceEvidence
ModifiedFile
A selected file whose stable relative path remained but content changed.
MultiContentVisitReport
Ordered summaries from a multi-root content visit.
MultiScanReport
Deterministic collection of independently rooted scan reports.
MultiScanner
Scans independent roots concurrently while preserving report order.
MultiWalker
Iterator returned by WalkBuilder.
NamedFileTypes
Named, reusable groups of file-name or repository-relative glob patterns.
ParallelMultiVisitReport
Per-root streaming reports in root insertion order.
ParallelMultiWalkEvent
A streaming event tagged with its root’s insertion index and path.
ParallelMultiWalkReport
Collected raw walk reports for independent roots in insertion order.
ParallelMultiWalker
Walks independent raw roots concurrently while preserving root order.
ParallelRuntime
Selects where parallel traversal jobs execute.
ParallelStatefulWalker
Bounded stateful pull iterator with parallel directory processing and strict deterministic depth-first output.
ParallelVisitReport
Summary of a streaming parallel traversal.
ParallelWalkIter
Bounded pull iterator backed by parallel traversal workers.
ParallelWalkReport
Collected output from a parallel filesystem walk.
ParallelWalker
An adaptive parallel filesystem walker.
PortableIgnoreSourceEvidence
Ignore-source evidence with external host paths removed.
PortableScanReport
A deterministic report suitable for crossing a repository or process boundary.
PortableScanWarning
Warning evidence that cannot expose paths embedded in an OS error message.
PortableScannedFile
A selected file without host-local absolute paths or file identities.
PortableSkippedEntry
Typed skip evidence with free-form details replaced by a stable hash.
RenamedFile
A uniquely content-matched file whose stable relative path changed.
RepositoryMatcher
A reusable, lazily cached repository ignore matcher.
ScanCache
Versioned local cache for incremental scans.
ScanCacheEntry
Compact reusable evidence for one content-hashed file.
ScanCacheStats
ScanDelta
Deterministic changes between two repository manifests.
ScanLimits
Hard bounds for hostile or unexpectedly large repository trees.
ScanOptions
ScanReport
ScanStreamReport
Summary of deterministic, backpressured scan emission.
ScanWarning
ScannedFile
Scanner
SkippedEntry
SnapshotContent
File bytes verified against the selected scan entry.
SnapshotContentProvider
Reads only files recorded in one validated ScanReport.
StatefulWalkBuilder
Builder for an iterative DFS walk with per-directory and per-entry state.
StatefulWalkEntry
A walk entry carrying caller-owned state assigned by process_read_dir.
StatefulWalker
Strict depth-first iterator produced by StatefulWalkBuilder.
WalkBuilder
Configures flexible single- or multi-root walking.
WalkEntry
WalkError
WalkOptions
Walker
Iterative depth-first filesystem walker.
WatchEvent
One raw path event supplied by a filesystem watcher.
WatchPlan
Deterministic invalidation plan derived from watcher events.
WatcherEventAdapter
Converts watcher-specific path notifications into scanner cache work.

Enums§

CacheValidationPolicy
Controls how persistent content hashes are validated before reuse.
ChangedContentVisitOutcome
Result of attempting a traversal-free watcher content visit.
ContentFileStatus
Result of verifying the file around its single content read.
ContentValidationPolicy
Controls post-read snapshot verification for newly opened content.
ContentVisitControl
Controls delivery from crate::Scanner::visit_content.
ContentVisitEvent
Events emitted from one bounded content worker.
ContentVisitMode
Controls whether a content visit retains selected-file evidence internally.
DeltaQuality
Strength of the evidence used to classify a scan delta.
Error
ErrorPolicy
EvidenceMode
IgnoreSourceKind
RepositoryMatch
Highest-precedence selection decision for a repository path.
RootSymlinkPolicy
Controls whether the explicitly supplied root itself may be a symlink.
ScanSinkControl
Controls deterministic file emission from crate::Scanner::scan_into.
ScanTermination
SkipKind
SnapshotEvidence
Evidence used to bind returned bytes to a scan snapshot.
SnapshotReadError
A path-safe failure from snapshot content access.
StandardSkips
WalkControl
Controls traversal after a streaming visitor handles an event.
WalkEvent
A streaming event emitted from a parallel traversal worker.
WalkOperation
WalkSkipReason
WatchEventKind
Normalized watcher event category independent of a watcher implementation.

Constants§

SCAN_CACHE_FORMAT_VERSION
Current on-disk format understood by ScanCache.

Traits§

ParallelExecutor
Adapter contract for an application-owned thread pool.
ScanSink
Synchronous consumer for selected scan entries.

Functions§

scan_repository
Scans a repository with default options.
scan_repository_compact
Scans a repository into a root-shared compact manifest.

Type Aliases§

ParallelJob
A job accepted by an embeddable ParallelExecutor.
Result