file_engine/operations/
mod.rs1#[cfg(feature = "compress")]
2mod compress;
3#[cfg(feature = "operations")]
4mod copy;
5#[cfg(feature = "sync")]
6pub(crate) mod diff;
7#[cfg(feature = "operations")]
8mod move_path;
9#[cfg(feature = "operations")]
10pub(crate) mod pipeline;
11#[cfg(feature = "sync")]
12mod sync;
13#[cfg(feature = "watch")]
14mod watch;
15
16#[cfg(feature = "operations")]
19pub(crate) fn default_concurrency() -> usize {
20 std::thread::available_parallelism()
21 .map(|n| n.get())
22 .unwrap_or(1)
23}
24
25#[cfg(feature = "compress")]
26pub use compress::{CompressBuilder, CompressFormat};
27#[cfg(feature = "operations")]
28pub use copy::CopyBuilder;
29#[cfg(feature = "operations")]
30pub use move_path::MoveBuilder;
31#[cfg(feature = "sync")]
32pub use sync::{SyncBuilder, SyncOutcome};
33#[cfg(feature = "watch")]
34pub use watch::WatchBuilder;