Skip to main content

Crate par_validator

Crate par_validator 

Source
Expand description

Parallel validation helpers for string-like fields (CPU / Rayon) and fixed-point numerics (GPU / wgpu).

§String rules

Use RuleBuilder with key paths from rust_key_paths (typically via key-paths-derive). Mandatory rules run sequentially and short-circuit on the first failure; remaining rules run in parallel with Rayon inside RuleBuilder::apply.

§Numeric rules

See gpu_numeric for GpuNumericEngine, which batches NumericRule rows in a single compute dispatch. Values cross the CPU/GPU boundary as i32 × 100 (no f32/f64 in the shader).

§Examples

  • cargo run --example hybrid_gpu — small hybrid demo
  • cargo run --example fintech_rayon_nested — large nested batch, CPU only
  • cargo run --example fintech_gpu_batch — large numeric batch, GPU only
  • cargo run --example fintech_hybrid_batch — both layers on a trade batch

Re-exports§

pub use errors::RuleBuilderError;

Modules§

errors
gpu_numeric
Fixed-point numeric validation and calculation on the GPU via wgpu.

Structs§

RuleBuilder
Fluent wrapper around a KpType (key path) and a set of validation functions.