Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

Crate marque_engine

Crate marque_engine 

Source
Expand description

marque-engine — pipeline orchestration.

Wires together: scanner → parser → validator → fixer → output. The pipeline is a chain of async streams; each stage is a Stream impl. CLI, WASM, and server are different Source/Sink configurations wired to the same middle.

Re-exports§

pub use batch::BatchEngine;
pub use batch::BatchError;
pub use batch::BatchOptions;
pub use clock::Clock;
pub use clock::FixedClock;
pub use clock::SystemClock;
pub use decoder::DecoderRecognizer;
pub use decoder::StrictOrDecoderRecognizer;
pub use engine::Engine;
pub use engine::FixMode;
pub use engine::InvalidThreshold;
pub use errors::EngineConstructionError;
pub use errors::EngineError;
pub use options::FixOptions;
pub use options::LintOptions;
pub use output::FixResult;
pub use output::LintResult;
pub use pipeline::Sink;
pub use pipeline::Source;
pub use pipeline::SourceError;
pub use pipeline::TextChunk;
pub use recognizer::StrictRecognizer;

Modules§

batch
Concurrent batch processing over many documents.
clock
Clock abstraction for deterministic timestamps in audit records.
decoder
Phase-D probabilistic Recognizer — the “decoder”.
engine
Engine — the configured, ready-to-run pipeline.
errors
Engine error surfaces — both build-time and runtime.
options
Per-call options for Engine::lint_with_options and Engine::fix_with_options (spec 005).
output
Output types returned by the engine’s synchronous API surface.
pipeline
Async stream pipeline types.
recognizer
Recognizer implementations for the engine’s strict dispatch path.
scheduler
Page-rewrite scheduler.

Structs§

Instant
Re-export of web_time::Instant.

Constants§

AUDIT_SCHEMA_IS_V2
true when this build emits Phase-D audit records (marque-mvp-2), false when emitting the legacy marque-mvp-1 shape.
AUDIT_SCHEMA_VERSION
Audit-record schema version emitted by this build.

Functions§

default_ruleset
Returns the default rule set for marque (CAPCO rules).
default_scheme
Returns the default marking scheme for marque (CAPCO).