grippo 0.2.0

Parse, match and scrub data faster and more efficiently.
Documentation
// Project:   grippo
// File:      src/lib.rs
// Purpose:   Crate root
// Language:  Rust
//
// License:   Apache-2.0
// Copyright: (c) 2026 HYPERI PTY LIMITED

//! Parse, match and scrub data faster and more efficiently.
//!
//! Grok and regex are how a pattern is written, not how it runs. Every
//! matcher and parser reports the [`MatcherTier`] it runs on, and the regex
//! engine runs only when no native route covers the pattern.

#![cfg_attr(docsrs, feature(doc_cfg))]

// Generated code names this crate `::grippo`, as it would from outside.
extern crate self as grippo;

pub mod cost;
#[cfg(feature = "parse")]
mod kernel;
mod tier;

pub use tier::MatcherTier;

#[cfg(feature = "strmatch")]
pub mod strmatch;

#[cfg(feature = "parse")]
pub mod parse;

#[cfg(feature = "parse")]
pub mod field;

#[cfg(feature = "time")]
pub mod time;

#[cfg(feature = "parse-grok")]
pub mod grok;

#[cfg(feature = "compose")]
pub mod compose;

#[cfg(feature = "parse")]
pub mod format;

#[cfg(any(
    feature = "decode-base64",
    feature = "decode-hex",
    feature = "decode-gzip",
    feature = "decode-zlib",
    feature = "decode-zstd",
    feature = "decode-snappy"
))]
pub mod decode;

#[cfg(feature = "scrub")]
pub mod scrub;

#[cfg(feature = "convert")]
pub mod convert;
#[cfg(feature = "domain")]
pub mod domain;
#[cfg(feature = "expr")]
pub mod expr;
#[cfg(feature = "json-depth")]
pub mod json;
#[cfg(any(
    feature = "parse",
    feature = "scrub",
    feature = "xml",
    feature = "json-paths"
))]
pub mod path;
#[cfg(feature = "record")]
pub mod record;
#[cfg(feature = "ua")]
pub mod ua;
#[cfg(feature = "uri")]
pub mod uri;
#[cfg(feature = "xml")]
pub mod xml;

#[cfg(test)]
mod shared_tests;