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
/// Current manifest schema version supported by client and server.
pub const DYNAMIC_MANIFEST_SCHEMA_V1: u32 = 1;
/// Current SSE event schema version supported by client and server.
pub const DYNAMIC_EVENT_SCHEMA_V1: u32 = 1;
/// Current negotiation protocol version for dynamic update APIs.
pub const DYNAMIC_PROTOCOL_VERSION_V1: u32 = 1;
/// Current host ABI version for dynamic component updates.
pub const DYNAMIC_HOST_ABI_V1: u32 = 1;
/// Default compatibility track label for Wasm Component delivery.
pub const DEFAULT_TRACK_WASM_V1: &str = "abi-v1-wasm";
/// Default compatibility track label for store-safe Declarative Data delivery.
pub const DEFAULT_TRACK_DATA_V1: &str = "abi-v1-data";
/// SSE event type name emitted when a release pointer activates.
pub const SSE_EVENT_RELEASE_ACTIVATED: &str = "release.activated";
/// Error string when manifest signature verification fails.
pub const ERR_INVALID_SIGNATURE: &str = "release manifest signature verification failed";
/// Error string when manifest JSON serialization fails.
pub const ERR_MANIFEST_SERIALIZE: &str = "failed to serialize canonical release manifest";
/// Error string when a release sequence is not strictly greater than the current release.
pub const ERR_NON_MONOTONIC_RELEASE: &str = "release sequence must be strictly monotonic";
/// Error string when an artifact hash is malformed.
pub const ERR_INVALID_HASH_FORMAT: &str =
"artifact sha256 must be 64 lowercase hex characters";
/// Error string when a required route entry module is missing from the artifact map.
pub const ERR_MISSING_ENTRY_ARTIFACT: &str =
"route entry module missing from release artifacts";
/// Error string when a route slot binding references a missing artifact.
pub const ERR_MISSING_SLOT_ARTIFACT: &str = "route slot binding references missing artifact";
/// Error string when a transitive dependency references a missing artifact.
pub const ERR_MISSING_DEP_ARTIFACT: &str = "artifact dependency references missing artifact";
/// Error string when a route's transitive hash closure is incomplete.
pub const ERR_INCOMPLETE_HASH_CLOSURE: &str =
"route transitive hash closure does not cover all bound artifacts";
/// Error string when an artifact exceeds the maximum allowed payload size.
pub const ERR_ARTIFACT_TOO_LARGE: &str = "artifact size exceeds configured byte budget";