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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//! Frozen dialect + op registration surface.
//!
//! **Single registration path.** Every op known to any vyre backend is
//! registered exactly once by submitting an [`OpDefRegistration`] via
//! `inventory::submit!`. There is no legacy registry shim, no parallel macro-generated
//! catalog, no alternative discovery mechanism. If an op isn't in the
//! `DialectRegistry` it doesn't exist; the wire decoder returns
//! [`vyre_foundation::error::Error::UnknownOp`] for it.
//!
//! Dialects register themselves via [`DialectRegistration`]. The per-op
//! [`OpBackendTarget`] rows are a pure metadata index so the coverage
//! matrix can answer "does this op have a primary-text path declared" without
//! loading every backend's lowering table.
//!
//! Extension crates adding new ops do not edit this module. They submit
//! their own `OpDefRegistration` from their own `inventory::submit!` macro
//! call at link time. Vision doc ยง2 (Open hierarchies) enforces this.
use OpDef;
/// Metadata for a versioned dialect of ops (e.g. `pattern`, `crypto`).
/// Default `Dialect::validator` that always succeeds.
/// Advertises that a named backend target publishes a lowering for a
/// specific op. This is distinct from [`crate::backend::BackendRegistration`]
/// (which registers a full `VyreBackend` implementation): it is a compact
/// (op, target) pair used by the coverage-matrix introspection path to list
/// "this op has a concrete lowering path declared".
/// **The single op registration path.**
///
/// Every op a vyre backend can execute is published by submitting one of
/// these through `inventory::submit!` at link time. The closure is called
/// once during registry freeze to build the stable [`OpDef`] record.
/// Register a dialect (op id namespace + version) via `inventory::submit!`.
collect!;
collect!;
collect!;