noyalib v0.0.17 Production Release

The Drop-In Rust & WebAssembly YAML Engine

Seamless 1-line migration from archived serde_yaml to 100% safe Rust, 100% test-suite compliance, zero unsafe code, and native MCP AI support.

crates.io v0.0.17 docs.rs API Reference GitHub Repository
CI Gatesbuild | passing
Supply Chaincargo audit | pass
YAML Compliance387/387 Pass (100%)
Security Policy & Audit
Quick Entry:
https://noyalib.com/examples/rust
// Cargo.toml: noyalib = { version = "0.0.17", features = ["simd", "rayon"] }
use noyalib::{parallel, Value, Result};

fn main() -> Result<()> {
    let yaml_data = r#"
    name: noyalib Engine
    version: 0.0.17
    features: [SIMD, Rayon, SafeRust, MCP, LSP]
    performance: 520MB/s
    "#;

    // Parallel Rayon multi-document deserialization
    let parsed: Value = parallel::from_str(yaml_data)?;
    println!("Parsed in parallel: {}", parsed["name"]);
    Ok(())
}

Coming from archived serde_yaml?

serde_yaml was officially archived in 2024. noyalib provides a 1-line drop-in compatibility shim and full support for migrating from serde_yml, yaml_serde, serde-yaml-ng, serde-norway, serde-yaml-bw, serde-saphyr, and yaml-spanned.

1-Line Cargo Code DiffView Full Migration Guide β†’
// Cargo.toml
- serde_yaml = "0.9"
+ noyalib = { version = "0.0.17", features = ["compat-serde-yaml", "simd"] }

// src/main.rs
- use serde_yaml;
+ use noyalib::compat::serde_yaml as serde_yaml; // Drop-in replacement for serde_yaml::from_str

let config: Config = serde_yaml::from_str(&yaml_string)?;

Concrete Jobs-To-Be-Done

Architected for infrastructure platforms, AI agent runtimes, and high-performance Rust microservices.

☸️

Kubernetes & Infra-as-Code Tooling

Parse multi-document YAML manifests concurrently across Rayon thread pools with zero heap allocations on hot scanning loops.

πŸ€–

AI Agents & Model Context Protocol (MCP)

Expose native MCP tools (`noyalib-mcp`) allowing Claude 3.5 and GPT-4o to parse, validate, and edit structured YAML configs losslessly.

🌐

WebAssembly Edge Microservices

Compile to sub-50 KB gzipped WASM (`noyalib-wasm`) with zero native C/C++ dependencies for browser applications and Cloudflare Workers.

⚑

IDE Language Server Protocol (LSP)

Power real-time syntax recovery, schema hover documentation, and diagnostics in VS Code with `noyalib-lsp` (`parse_lenient`).

Built for Speed with Verifiable Methodology

noyalib combines SWAR vector scanners, zero-copy byte dispatch, and multi-thread Rayon document pre-scanning to outpace both maintained 2026 Rust crates and legacy parsers. All benchmarks are open source and reproducible.

Deserialization Throughput ComparisonMegabytes per second (Higher is better)
noyalib (Rayon Parallel)520 MB/s (7.6x Faster)
noyalib (Single-Thread SIMD)380 MB/s (5.5x Faster)
serde-saphyr (Maintained 2026)142 MB/s (2.0x Faster)
yaml-rust2 (Maintained 2026)125 MB/s (1.8x Faster)
serde_yaml (Legacy Archived 0.9)68 MB/s (1.0x Baseline)
520 MB/s
Peak Parsing Speed
387/387
YAML Test Suite Cases Pass
100%
Safe Rust (#![forbid(unsafe_code)])
0 B
Unnecessary Allocations

Reproducible Benchmark Methodology

Benchmarked using Criterion.rs v0.5 across 10,000 iterations (95% Confidence Interval Β±0.8%). Hardware: Apple M2 Max & AMD EPYC 9654. Dataset: Official 387-case YAML Test Suite corpus and 100 MB multi-document enterprise telemetry payload.

Inspect Criterion Harness (benches/throughput.rs) Reproduction Command: cargo bench --bench throughput

Engineered for Modern Software Architecture

Surgical SWAR vector scanners, zero-copy byte dispatch, and 100% safe Rust memory invariants.

SIMD

Zero-Copy SWAR Vector Scanning

Multi-byte SWAR bitwise scanning finds structural delimiters in a single CPU pass with zero unsafe transmutes on stable Rust. Scans up to 8 bytes per CPU instruction loop.

SAFE

100% Safe Rust Guarantee

Enforces #![forbid(unsafe_code)] across the entire codebase. Eliminates undefined behavior, null pointer dereferences, and buffer overflow vulnerability vectors on untrusted inputs.

MCP

Model Context Protocol (MCP)

Native MCP AI server tool allowing Claude 3.5 Sonnet, GPT-4o, and AI agents to query, parse, and validate data streams.

AUDIT

Audited Security CI Gates

Enforces cargo audit, cargo deny, and cargo vet on every push. Zero unmaintained or archived dependencies.

PAR

Parallel Rayon Streaming

Pre-scans multi-document boundaries and deserializes documents concurrently across all CPU cores.

LSP

IDE LSP & Error Recovery

Fault-tolerant parse_lenient engine powers live diagnostics, schema hover docs, and completion in VS Code.

The Complete Suite of Libraries

noyalib is designed as a synchronized suite of satellite crates serving every execution context.

noyalib (Core Crate)

The foundational Rust engine. Zero-copy SIMD scanning, Rayon parallel multi-document parsing, JSON Schema 2020-12 validation, and 100% safe Rust.

  • Zero-copy byte dispatch with SWAR vector acceleration
  • Multi-document parallel parsing via Rayon thread pool
  • Schema validation & schemars derive integration
  • Serde 0.9 compatibility shim and zero memory leakage
Install Command:
cargo add noyalib --features simd,rayon
use noyalib::{parallel, Value};

let docs = parallel::values("--- doc1: val --- doc2: val")?;
assert_eq!(docs.len(), 2);

Test the Real WASM Engine & Validator Live

Convert YAML, benchmark WASM parsing throughput live, and explore JSON Schema 2020-12 real-time diagnostics running on the noyalib-wasm WebAssembly engine.

YAML Input
Formatted JSON Output
{
  "name": "noyalib",
  "version": "0.0.17",
  "architecture": [
    "SIMD",
    "Rayon",
    "SafeRust"
  ],
  "performance": {
    "speed": "520MB/s",
    "safe": true
  }
}
βœ“ Valid YAML / Structured DataParsed in 0.18 ms (Real WASM SIMD Engine)

Get Started in Seconds

Choose your preferred installation method below.

Rust Library

Add to Cargo project with SIMD and Rayon acceleration.

cargo add noyalib --features simd,rayon

Terminal CLI

Install command-line parser & validator binary.

cargo install noya-cli

WebAssembly

Install NPM package for Web & Cloudflare Workers.

npm install noyalib-wasm

Model Context Protocol

Run native MCP server for AI tools & LLMs.

cargo install noyalib-mcp

noyalib is an open-source, high-performance data & YAML engine written in 100% safe Rust featuring zero-copy SIMD parsing, Rayon parallel streaming, WebAssembly runtime, Model Context Protocol (MCP) AI server, and LSP support. Validated against the official YAML Test Suite at 100% strict compliance (387/387 cases passing).