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
//! [`ComponentManifest`] — identity, route, limits, and declared capabilities of one component.
use ;
use crate::;
/// Declares what a Wasm component is, what route it wants, what it
/// declares it needs, and where it came from.
///
/// 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 route, 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 changes `route_id` or bumps
/// `contract_version`) -- the entity persists across such changes.