core/README.md
Rust library implementing the Virtual Distributed File System (VDFS) architecture for local-first, AI-native file management.
src/
├── domain/ # Core data models (Entry, Library, Device)
├── ops/ # Operations (actions and queries, CQRS pattern)
├── infra/ # Infrastructure (database, events, wire protocol)
├── service/ # High-level services (network, jobs, sessions)
├── location/ # Location management and indexing
├── library/ # Library lifecycle and operations
├── device/ # Device identity and management
├── volume/ # Volume detection and fingerprinting
├── config/ # Application configuration
├── crypto/ # Cryptographic primitives
└── bin/ # Binaries (cli, daemon)
Core Manager (Core struct in lib.rs)
Library (library/)
.sdlibrary directories)Entry-Centric Model (domain/entry.rs)
Device Management (device/)
device.json)Operations Layer (ops/)
inventory crateInfrastructure (infra/)
api/: Wire protocol dispatcher and RPC serverevent/: Event bus for state changesaction/: Transactional action system with preview-commit-verifyquery/: Read-optimized query handlersNetworking (service/network/)
Jobs (service/jobs/)
Indexing (location/indexer/)
Volume Management (volume/)
query:vdfs.list_entries)crates/sdk/)# Full build
cargo build --release
# With optional features
cargo build --features ffmpeg,ai,heif
# Specific binary
cargo build --bin spacedrive
cargo build --bin daemon
# Run CLI
cargo run --bin spacedrive -- --help
spacedrive: CLI interfacedaemon: Background daemon processinventory crate macros# All tests
cargo test
# Specific module
cargo test --lib location::indexer
# Integration tests
cargo test --test indexer_test
See /docs/core/ for detailed architecture documentation.