#schema-validation #workspace #schema #validation

workspacer-validate

A high-performance Rust crate for validating structured data within workspaces, emphasizing schema enforcement and error diagnostics

1 unstable release

Uses new Rust 2024

new 0.1.1 Apr 1, 2025

#17 in #schema-validation

25 downloads per month

MIT license

60KB
75 lines

workspacer-validate

workspacer-validate is a Rust crate tailored for validating and ensuring the integrity of structured data within workspaces. Designed for use in high-performance and enterprise-grade environments, it offers robust utilities for dynamic data validation, schema enforcement, and consistency checks across varied data forms.

Features

  • Flexible Validation: Define custom validation logic for diverse data structures using a fluent API.
  • Schema Enforcement: Use built-in tools to enforce strict adherence to predefined data schemas, enhancing data reliability.
  • Performance Optimized: Analyze and validate large datasets with minimal overhead.
  • Comprehensive Error Reporting: Receive detailed error messages that facilitate quick diagnosis and resolution.

Integration

Seamless integration with existing Rust-based data management and processing ecosystems, ensuring high compatibility and easy adoption.

Usage

Add the following to your Cargo.toml:

[dependencies]
workspacer-validate = "0.1.0"

Then, in your Rust code:

use workspacer_validate::Validator;

let data = /* your data here */;
let validator = Validator::new();

if validator.validate(&data) {
    println!("Data is valid.");
} else {
    eprintln!("Data validation failed.");
}

License

Licensed under the Apache License, Version 2.0 or the MIT license, at your choice.

Dependencies

~38–73MB
~1M SLoC