mocra_core/lib.rs
1//! `mocra-core` — the [mocra](https://github.com/ouiex/mocra) crawler framework's runtime.
2//!
3//! This crate holds the **entire runtime**: errors, cache service, utilities, shared domain
4//! models and runtime state, the downloader, the data-plane queue, coordination / sync, the
5//! scheduler, and the crawling engine + observability API ([`errors`] / [`cacheable`] /
6//! [`utils`] / [`common`] / [`downloader`] / [`queue`] / [`sync`] / [`schedule`] / [`engine`]).
7//! The host `mocra` crate is a thin facade over it.
8
9// Structural clippy lints — deliberate design trade-offs (argument count, type complexity,
10// module inception, error / enum variant size), not bugs. Exempted uniformly to stay consistent
11// with the host crate (these modules used to live there and relied on the same exemptions).
12#![allow(
13 clippy::too_many_arguments,
14 clippy::type_complexity,
15 clippy::module_inception,
16 clippy::result_large_err,
17 clippy::large_enum_variant
18)]
19
20pub mod errors;
21
22#[path = "cacheable/lib.rs"]
23pub mod cacheable;
24
25#[path = "utils/lib.rs"]
26pub mod utils;
27
28#[path = "common/lib.rs"]
29pub mod common;
30
31#[path = "downloader/lib.rs"]
32pub mod downloader;
33
34#[path = "queue/lib.rs"]
35pub mod queue;
36
37#[path = "sync/lib.rs"]
38pub mod sync;
39
40#[path = "schedule/lib.rs"]
41pub mod schedule;
42
43#[path = "engine/lib.rs"]
44pub mod engine;