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
80
81
//! Tier 2.5 LEGO primitive registry.
//!
//! **Registry Layering**: This file defines the `OpEntry` registry for Tier-2.5 primitives.
//! It operates in parallel with the Cat-A registry (`vyre-harness::OpEntry`) and the Tier-2 hardware intrinsics registry (`vyre-intrinsics::harness::OpEntry`).
//! For an architectural overview of this three-registry split, see `vyre-harness/README.md`.
//!
//! Mirrors `vyre_libs::harness::OpEntry` so that the universal
//! conform harness, `cargo xtask print-composition`, and the
//! cross-backend parity matrix discover primitives via the same
//! `inventory::iter::<OpEntry>` walk they already use for Tier-3
//! dialects. The Tier-2.5 bucket is a separate `inventory::collect!`
//! slot so consumers (and audits) can scan just the LEGO substrate
//! without sweeping the entire library surface.
//!
//! ## Gating
//!
//! The module is compiled only when `inventory-registry` is enabled
//! (which pulls in `inventory` + `vyre-foundation`). Production
//! builds that only want the `fn(...) -> Program` builders without
//! the registry overhead leave the feature off — the primitives
//! still work, they just aren't listed in the inventory walk.
// The enclosing `pub mod harness` in `lib.rs` already carries a
// `#[cfg(feature = "inventory-registry")]` gate, so no inner
// `#![cfg]` attribute is needed here.
use Program;
/// Deterministic fixture input cases. One `Vec<Vec<u8>>` per input
/// set, one `Vec<u8>` per declared buffer.
pub type InputsFn = fn ;
/// Deterministic expected-output fixtures. Same shape as [`InputsFn`].
pub type ExpectedFn = fn ;
/// One registered Tier-2.5 primitive. Every `pub fn <name>(...) ->
/// Program` in `vyre-primitives` submits one of these.
collect!;
/// Iterate every Tier-2.5 primitive that ships its registration via
/// `inventory::submit!(OpEntry { ... })`.