Skip to main content

marque_ism/
generated.rs

1// SPDX-FileCopyrightText: 2026 Knitli Inc.
2//
3// SPDX-License-Identifier: LicenseRef-MarqueLicense-1.0
4
5//! Generated code wrappers — `include!()` bridges to `OUT_DIR/` build.rs output.
6//!
7//! The actual generated files (`values.rs`, `validators.rs`, `migrations.rs`)
8//! are produced by `build.rs` from ODNI ISM schema files and written to `OUT_DIR`.
9//! They are never checked into version control.
10
11/// CVE enumeration values: SCI controls, dissem controls, country trigraphs, etc.
12pub mod values {
13    include!(concat!(env!("OUT_DIR"), "/values.rs"));
14}
15
16/// Schematron-derived validation predicates.
17pub mod validators {
18    include!(concat!(env!("OUT_DIR"), "/validators.rs"));
19}
20
21/// Deprecated marking → replacement migration table.
22pub mod migrations {
23    include!(concat!(env!("OUT_DIR"), "/migrations.rs"));
24}
25
26/// Per-token metadata derived from the ODNI ISM JSON sidecars
27/// (`schemas/ISM-v2022-DEC/CVE_ISM/CVEnum*.json`). Provides the
28/// publishing authority (URN, source, point of contact, schema
29/// version) and long-form description for every token in the active
30/// CVE vocabulary.
31///
32/// The composition of these raw records into the
33/// `marque-scheme::Vocabulary<S>` trait surface lives in
34/// `marque-capco` (Phase 5 PR-2 task T084). `marque-ism` cannot
35/// reference the scheme types directly per Constitution VII —
36/// it sits below `marque-scheme` in the dependency graph.
37pub mod vocabulary {
38    include!(concat!(env!("OUT_DIR"), "/vocabulary.rs"));
39}