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
//! Embed the Windows application manifest, and do nothing else ever.
//!
//! This is the crate's only build script, and it exists for one line of XML:
//! the DPI declaration in `packaging/windows/slipcase-open.manifest`, which the
//! certification kit asked for on 2026-09-06 and which this product needs for
//! its own sake — a message box and a tray icon are the whole of what a person
//! sees here, and an unaware process has both bitmap-stretched.
//!
//! **Nothing is compiled that was not compiled before.** The usual way to embed
//! a manifest is `rc.exe` or `windres`, and this project has no resource
//! compiler and wants none; the tray's icons are loaded from files beside the
//! binary for the same reason. This prints two linker arguments and the linker
//! that was already linking the binary does the embedding.
//!
//! **A second use for this file is a decision, not a precedent.** The one
//! opened here is narrow on purpose: a build should need a Rust toolchain and
//! nothing else.
//!
//! Author: David M. Anderson
//! Built with AI assistance (Claude, Anthropic)
use Path;