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 Rule from builder with bool predicates and a paired error value E per rule (see builder::Rule::mandatory_rule / builder::Rule::rule). Mandatory rules run sequentially and short-circuit; remaining rules run in parallel with Rayon inside Rule::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 basics — CPU-only starter
  • 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
  • cargo run --example rule_csv_catalogbuilder::Rule + CSV catalog

Re-exports§

pub use builder::Rule;
pub use errors::RuleBuilderError;

Modules§

builder
Key-path–driven validation builder (Rule).
errors
gpu_numeric
Fixed-point numeric validation and calculation on the GPU via wgpu.