1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! The DAG engine has been extracted into its own crate, [`mocra_dag`].
//!
//! This module remains as a re-export shim (top level + the `dag` submodule, keeping the existing
//! `crate::schedule::*` and `crate::schedule::dag::*` paths working), and provides the host
//! adapters here: adapting the main crate's
//! [`CacheService`](crate::cacheable::CacheService) / [`SyncService`] to dag's
//! [`DagStore`] / [`DagEventSink`].
pub use *;
/// Compatibility for the old `crate::schedule::dag::*` path.
use async_trait;
use crate;
// `impl DagStore for CacheService` moved into `mocra-core` along with `CacheService` (orphan rule:
// both the trait and the type live in external crates, so the impl must sit in a crate that owns
// one of them).
// SyncAble is a local trait and DagNodeSyncState is a foreign type — the orphan rule permits this
// impl here.
/// Adapts the host's distributed sync service into dag's node status event sink.
;