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
//! Source-code transform plugin trait for the build pipeline.
//! Plugins can rewrite file contents at compile time (e.g. macro expansion,
//! code injection) and run in priority order alongside built-in transforms.
use cratetransform_priority;
/// Context provided to transform plugins (read-only view of build state).
/// A plugin that hooks into the source-code transform pipeline.
///
/// **Compile-time only** — no WASM overhead on every file.
///
/// Built-in transforms run at priorities 100–700. Plugin transforms default
/// to priority 1000 (after all built-ins). Lower priority runs first.