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
//! [`ComponentManifest`] — identity, limits, and declared capabilities of one component.
use ;
use crateResourceLimits;
/// Declares what a Wasm component is, what it declares it needs to run.
///
/// Checked by a real `ComponentValidator` implementor before the
/// component's route is ever registered — a component whose manifest
/// fails validation must never reach the host's dispatch engine.
///
/// The one `entity` in this crate: `component_id` is a stable identity
/// that outlives changes to contract version or anything else here, so
/// equality is by `component_id` alone (see [`PartialEq`] below), not
/// full structural equality the way a `vo`/`dto` compares.
/// Identity-based, not structural: two manifests with the same
/// `component_id` are the same component even if every other field
/// differs (e.g. a redeploy that bumps `contract_version`) -- the
/// entity persists across such changes.