Skip to main content

Crate marque_ism

Crate marque_ism 

Source
Expand description

marque-ism — ISM vocabulary types, generated CVE enums, and core spans.

This crate is the leaf dependency in the marque workspace. It owns:

  • Span and scanner candidate types (zero-copy position tracking)
  • IsmAttributes (the canonical parsed marking representation)
  • TokenSet trait and CapcoTokenSet (Aho-Corasick CVE token matching)
  • Generated code from ODNI ISM schemas (CVE enums, validators, migrations)

WASM-safe: no I/O, no format dependencies, no platform-specific code.

Re-exports§

pub use attrs::Classification;
pub use attrs::DeclassExemption;
pub use attrs::DissemControl;
pub use attrs::IsmAttributes;
pub use attrs::SarIdentifier;
pub use attrs::SciControl;
pub use attrs::TokenKind;
pub use attrs::TokenSpan;
pub use attrs::Trigraph;
pub use generated::values::SCHEMA_VERSION;
pub use page_context::PageContext;
pub use span::DocumentPosition;
pub use span::MarkingCandidate;
pub use span::MarkingType;
pub use span::Span;
pub use span::Zone;
pub use token_set::CapcoTokenSet;
pub use token_set::TokenSet;

Modules§

attrs
IsmAttributes — the canonical in-memory representation of a classification marking.
generated
Generated code wrappers — include!() bridges to OUT_DIR/ build.rs output.
page_context
Page-level aggregation context for deriving expected banner markings.
span
Byte-offset spans into source buffers — zero-copy position tracking.
token_set
Compile-time Aho-Corasick automaton over CVE token vocabulary.