Skip to main content

Crate json_eval_rs

Crate json_eval_rs 

Source
Expand description

JSON Eval RS - high-performance JSON Logic and schema evaluation.

Main public entry points are re-exported from this crate root: JSONEval for schema evaluation, ParsedSchema for reusable parsed schemas, ParsedSchemaCache for cache-backed reuse, and RLogic for lower-level JSON Logic compilation/evaluation.

Module map:

  • jsoneval owns schema parsing, evaluation, layout resolution, validation, and caches.
  • rlogic owns the JSON Logic compiler/evaluator used by schema evaluation.
  • parse_schema and topo_sort preserve legacy parsing/sorting entry points.
  • utils contains crate-wide timing/debug helpers and numeric cleanup utilities.
  • ffi and wasm expose binding layers behind feature flags.

Re-exports§

pub use jsoneval::eval_data::EvalData;
pub use jsoneval::parsed_schema::ParsedSchema;
pub use jsoneval::parsed_schema_cache::ParsedSchemaCache;
pub use jsoneval::parsed_schema_cache::ParsedSchemaCacheStats;
pub use jsoneval::parsed_schema_cache::PARSED_SCHEMA_CACHE;
pub use jsoneval::path_utils::ArrayMetadata;
pub use jsoneval::table_metadata::TableMetadata;
pub use rlogic::CompiledLogic;
pub use rlogic::CompiledLogicId;
pub use rlogic::CompiledLogicStore;
pub use rlogic::CompiledLogicStoreStats;
pub use rlogic::Evaluator;
pub use rlogic::LogicId;
pub use rlogic::RLogic;
pub use rlogic::RLogicConfig;
pub use jsoneval::JSONEval;
pub use jsoneval::types::*;
pub use utils::*;

Modules§

jsoneval
Schema evaluation engine.
parse_schema
Schema parsing entry points.
rlogic
RLogic - High-performance JSON Logic compiler and evaluator
topo_sort
Dependency topological sorting entry points.
utils
Crate-wide utility helpers.

Macros§

debug_log
Cross-platform debug logging macro. Prints natively to console.log in WASM environments, and falls back to println! elsewhere.
time_block
Macro for timing a block of code

Functions§

version
Get the library version