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
76
77
78
79
80
81
82
83
//! shun — a flow-driven payload delivery runtime.
//!
//! shun packages the *delivery* half of shipping desktop software: an
//! embeddable payload, a declarative flow (choose a mode, choose a target,
//! stream progress), and pluggable targets — an [`targets::install`] target
//! that performs direct per-platform registration (Windows: ARP entry,
//! shortcuts, Explorer verbs; Linux: `.desktop` launchers; macOS: `.app`
//! bundles) plus a portable mode that writes no system state at all, and a
//! [`targets::flash`] target that writes images to block devices with
//! post-write verification.
//!
//! The runtime shell (`shell/`, a Tauri front-end built on the celestia
//! hikari design system) and the build CLI both consume this crate; one
//! config document drives the three of them — see
//! [`config::ShunConfig`].
//!
//! # Cargo features
//!
//! `online` (default) ships the networked payload source; `cli` (default)
//! ships the build CLI's extras; and `scripting` (default) ships the embedded
//! duckscript interpreter behind
//! manifest `script` hooks. Embedded consumers building with
//! `default-features = false` keep none of the three — a lean dependency
//! graph with no scripting runtime, and a manifest that still declares
//! hooks then fails loudly at the flow boundary instead of silently
//! skipping them.
//!
//! # Status
//!
//! `0.2.x`: the config schema, flow model, payload pipeline, and install
//! target are exercised by three real consumers — the WoWSP installer
//! shell, shittim-chest local, and the evernight image flasher (which
//! lands the flash backend's block-device write path). APIs track the
//! three consumers between minor versions.
// The done-page confirmation's classified failures (application-control
// blocks, missing entry points) — the one shape every face renders.
// Help topics + the per-OS / per-distro official help URLs behind them
// (see the module docs for the embedded-vs-online guides contract).
// Install-target filesystem probes: drive enumeration (fixed drives
// included, unlike the flash backend's removable-only list), writability
// probing, and conventional install-root candidates.
// The stamp container: generic shells made product-specific by appended
// data (see the module docs). Shares the payload pipeline's packing, so
// it rides the same feature gate.
// The online payload source rides the optional `ureq` dependency; without
// the feature the crate still builds for offline consumers (found by the
// evernight flasher integrating with default-features = false).
// Optional attachments (asset packs fetched at install time) download
// through the online pipeline, so they share the feature gate.
// Update watch: mirror sources probed in order, with the declared files
// resolved under the first reachable one. Probes and fetches ride the
// same optional `ureq` dependency as the online payload source.
// Evergreen offline-installer delivery: discovery inside the payload,
// per-user staging, and the `/silent /install` runner the shell's
// install step uses on runtime-less machines (wizard consent; headless
// silent).
pub use ShunError;