35 lines
1.1 KiB
Rust
35 lines
1.1 KiB
Rust
//! Clawstor library — the shared code that every binary in this
|
|
//! crate pulls in.
|
|
//!
|
|
//! Historically this crate was bin-only: each of `claw-store`,
|
|
//! `claw-cargo`, and `claw-fuse` re-declared the full `mod ...` list
|
|
//! at its own root. That worked but meant a new bin had to duplicate
|
|
//! 13 lines of module registration (and stayed one edit-slip away
|
|
//! from silently dropping a module).
|
|
//!
|
|
//! This file lifts the shared modules into a proper library crate.
|
|
//! Bins now write `use claw_store::cluster::blob::BlobStore;` and get
|
|
//! the same symbols. Existing internal paths — the ones that use
|
|
//! `crate::cluster::...` inside bins — keep working because each bin
|
|
//! still has its own `mod cluster;` at the bin root that re-declares
|
|
//! the same file tree.
|
|
//!
|
|
//! Future work: migrate the bin-internal `mod ...` blocks to
|
|
//! `use claw_store::...` and delete this parallel structure.
|
|
|
|
pub mod actions;
|
|
pub mod cargo_init;
|
|
pub mod cluster;
|
|
pub mod config;
|
|
pub mod daemon;
|
|
pub mod head_watch;
|
|
pub mod hot;
|
|
pub mod manifest;
|
|
pub mod restore;
|
|
pub mod serve;
|
|
pub mod serve_v2;
|
|
pub mod sessions;
|
|
pub mod snapshot;
|
|
pub mod sync;
|
|
pub mod zfs;
|