Skip to main content

marque_core/
lib.rs

1// SPDX-FileCopyrightText: 2026 Knitli Inc.
2//
3// SPDX-License-Identifier: LicenseRef-MarqueLicense-1.0
4
5#![forbid(unsafe_code)]
6#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
7
8//! marque-core — format-agnostic text scanner and attribute parser for the marque rule engine.
9//!
10//! This crate is WASM-safe: no format dependencies, no I/O, operates on `&[u8]`.
11//! The pipeline entry point is [`Scanner`], which produces [`Span`]s that the
12//! [`Parser`] converts into [`IsmAttributes`].
13//!
14//! Core ISM types (`Span`, `IsmAttributes`, `TokenSet`, etc.) are defined in
15//! `marque-ism` and re-exported here for backward compatibility.
16
17pub mod attrs;
18pub mod error;
19pub mod fuzzy;
20pub mod parser;
21pub mod scanner;
22pub mod span;
23
24pub use error::CoreError;
25pub use marque_ism::{IsmAttributes, MarkingType, Span};
26pub use parser::Parser;
27pub use scanner::Scanner;