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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! # engenho-substrate-core
//!
//! The tokio-free core of engenho's substrate. Everything here is plain
//! data, pure functions and `std` I/O; no async runtime is a dependency of
//! this crate, so no module can reach one (the manifest is the seal, and
//! `tests/tokio_free.rs` pins it).
//!
//! The substrate is carved in three by what is reachable:
//!
//! | Crate | Holds | Who may depend on it |
//! |---|---|---|
//! | `engenho-substrate-core` (this crate) | the eleven modules below | anyone |
//! | `engenho-substrate` (the leaf) | every module a shipped crate references; re-exports this crate whole | shipped crates |
//! | `engenho-substrate-incubator` | modules no shipped crate references | tests and drafts only |
//!
//! Every path under `engenho_substrate::` that named one of these modules
//! still resolves: the leaf re-exports this crate with a glob, macros
//! included.
//!
//! ## Modules
//!
//! * [`closed_enum`] — `closed_enum!`, a fieldless enum and its `ALL`
//! (and optionally its `name()`) generated from one variant list
//! * [`error_kind`] — `ErrorKind` + `impl_error_kind!`, the stable tag
//! every typed error reports
//! * [`named`] — `Named` + `define_named!` / `impl_named_field!`
//! * [`hex`] / [`hash_newtype`] — hex encoding and the
//! `define_hash_newtype!` BLAKE3 newtype surface
//! * [`fingerprint`] — `Fingerprint` + `impl_fingerprint!`
//! * [`atomic_write`] — fsync-anchored tmp+rename atomic write
//! * [`magic_blob`] — versioned magic header + BLAKE3-hashed payload
//! * [`risca`] — `Risca<T>` redaction + `assert_risca_no_leak!`
//! * [`relogio`] — `Clock`, `Instant` and the wall/frozen/HLC clocks
//! * [`host_root`] — `HostRoot`, the root every absolute host path
//! resolves under (`/` on a node, a temporary directory in tests)
pub use ;
pub use ErrorKind;
pub use ;
pub use ;
pub use ;
pub use HostRoot;
pub use ;
pub use Named;
pub use ;
pub use ;