$ json5

v1.3.0

A Rust JSON5 serializer and deserializer which speaks Serde.

Downloads: 38.2M
Recent: 6.4M
Versions: 19
Updated: December 7, 2025

Latest Update Summary

Crate

Name: json5 New version: 1.0.0 Release date: 2025-11-29T21:54:35.034225Z

Crate readme

Short description Statistics-driven Microbenchmarking in Rust

Long description Criterion.rs helps you write fast code by detecting and measuring performance improvements or regressions, even small ones, quickly and accurately. You can optimize with confidence, knowing how each change affects the performance of your code.

Features • Statistics: Statistical analysis detects if, and by how much, performance has changed since the last benchmark run • Charts: Uses gnuplot to generate detailed graphs of benchmark results • Stable-compatible: Benchmark your code without installing nightly Rust

Code Examples Add to Cargo.toml

 [dev-dependencies]
criterion = { version = "0.7", features = ["html_reports"] }

[[bench]]
name = "my_benchmark"
harness = false

Basic benchmark setup

 use std::hint::black_box;
use criterion::{criterion_group, criterion_main, Criterion};

fn fibonacci(n: u64) -> u64 {
    match n {
        0 => 1,
        1 => 1,
        n => fibonacci(n-1) + fibonacci(n-2),
    }
}

fn criterion_benchmark(c: &mut Criterion) {
    c.bench_function("fib 20", |b| b.iter(|| fibonacci(black_box(20))));
}

criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);

Run your benchmark

 cargo bench

Linkshttps://criterion-rs.github.io/book/getting_started.htmlhttps://criterion-rs.github.io/book/index.htmlhttps://docs.rs/crate/criterion/https://github.com/criterion-rs/criterion.rs/blob/master/CHANGELOG.mdhttps://crates.io/crates/criterionhttps://github.com/criterion-rs/criterion.rs/blob/master/CONTRIBUTING.mdhttps://github.com/bluss/bencherhttp://www.serpentine.com/criterion/https://github.com/BurntSushi/cargo-benchcmphttps://github.com/ferrous-systems/flamegraphhttps://crates.io/crates/criterion-cycles-per-bytehttps://crates.io/crates/criterion-perf-events

https://api.github.com/repos/callum-oakley/json5-rs/releases/266162700

Release info

Release version:

Release description

Code Examples

Minor update: 1.2.0 → 1.3.0

$ DOWNLOADS TREND

33.9M38.2M

$ VERSION HISTORY

v1.3.0December 7, 2025
v1.2.0December 5, 2025
v1.0.0November 29, 2025
v0.4.1September 21, 2021

$ LINKS

$ INSTALL

cargo add json5

Or add to Cargo.toml: json5 = "1.3.0"