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
65
66
67
68
69
70
71
72
73
74
75
//! Core library for the `dalo` command-line application.
//!
//! The Rust library API is not a semver contract; the CLI, its exit codes, its
//! `--json` output, and the files Dalo persists are. Modules, types, and
//! signatures here may change in any release, including a patch.
//!
//! The library owns the domain model and operations so CLI handlers stay thin
//! and command behavior can be tested without spawning the binary. To integrate
//! with Dalo, call the CLI and read its `--json` reports and exit codes: that is
//! the documented, supported surface.
//!
//! The full stability contract, including the three tiers, the change policy,
//! the persisted schema versions, and the supported platforms, lives in
//! [`docs/compatibility.md`](https://dalo.sh/docs/compatibility.html) and is
//! recorded in ADR 0008.
// dalo relies on `std::os::unix` symlink APIs and `$HOME` resolution. Fail the
// build early on unsupported platforms instead of with a deep type error.
compile_error!;
// CLI plumbing: hidden from the rendered docs, not part of any contract.
// CLI plumbing: hidden from the rendered docs, not part of any contract.
// CLI plumbing: hidden from the rendered docs, not part of any contract.
pub use ;