ron-rs/ron
67.2
Adequate · 14 November 2026
9.7k
lines of production code
Rust
primary language
5
measurements over time
What this system is
Features
Introduce Value, Map, Number, and RawValue types for runtime data representation
This change introduces the core \Value\ enum and its supporting types (\Map\, \Number\, \RawValue\) in the \src/value\ module, providing a structured, runtime representation of RON data that can be manipulated and deserialized into Rust types. \Map\ offers a flexible key-value store that optionally preserves insertion order via the \indexmap\ feature, while \Number\ supports lossless storage of various integer and float primitives (including 128-bit integers when enabled) and is marked non-exhaustive to prevent breaking changes in user code. \RawValue\ allows capturing and manipulating raw RON strings without immediate deserialization, and the new \Value\ type implements Serde's \Deserializer\ to enable converting these runtime values back into strongly-typed Rust structs.
src/value · high confidence
New examples demonstrating RON v0.9+ byte string handling and file I/O
The examples directory now includes demonstrations of key RON v0.9+ features. The new \base64.rs\ example shows how to serialize and deserialize byte vectors using Rusty byte strings (the default since v0.9) or legacy base64-encoded strings, including a hybrid mode that accepts both formats. Additional examples (\decode.rs\, \decode\_file.rs\, \encode.rs\, \encode\_file.rs\, \file\_read\_write\_vec.rs\) illustrate modern serialization and deserialization patterns, including writing to \io::Writer\, handling \Vec\<T\>\ records in files, and using \PrettyConfig\ options like depth limits and compact formatting. The \transcode.rs\ example demonstrates converting RON data to JSON via the \Value\ type, while \example.ron\ provides a sample configuration file.
examples · high confidence
New serialization module with path-based metadata and raw value support
The \src/ser\ module has been restructured to introduce path-based field metadata serialization, allowing users to attach documentation comments to specific fields via \PrettyConfig.path\_meta\. The module now includes dedicated support for serializing \ron::value::RawValue\ (which outputs raw RON strings) and implements serialization for the \Value\ type. Additionally, the \PrettyConfig\ structure has been expanded with new options including \compact\_maps\, \compact\_structs\, \number\_suffixes\, and \compact\_ranges\ to control output formatting.
src/ser · high confidence
Architecture
Restructured deserialization module with dedicated ID and tag handlers
The deserialization logic in \src/de\ has been reorganized into a modular structure, introducing dedicated \id.rs\ and \tag.rs\ sub-modules to handle identifier and tagged-deserialization scenarios respectively. The main \mod.rs\ now coordinates these components and exposes convenience functions like \from\_reader\ (when the \std\ feature is enabled) and \from\_str\. This refactoring supports more precise error handling for identifiers and tags, while the existing test suite in \tests.rs\ and value deserialization logic in \value.rs\ remain integrated to ensure round-trip compatibility.
src/de · high confidence
Behavioural changes
Introduce RON 0.12.2 with no\_std support and explicit Options API
This release restructures the library to support \no\_std\ environments and introduces a new \Options\ struct that centralizes configuration for serialization and deserialization. Users can now explicitly enable extensions like \IMPLICIT\_SOME\ and set recursion limits via the \Options\ builder, rather than relying on global or implicit settings. The error handling is also refined with a new \SpannedError\ type that includes precise line/column spans for better debugging, and the \Extensions\ system is now backed by the \bitflags\ crate for more robust flag management.
src · high confidence
RON version 0.12.2 release with number range and string escape support
This release introduces support for parsing Rust-style string continuation escapes and fixes the round-tripping of compact ranges containing infinity or NaN values. It also adds support for parsing number ranges (e.g., \3..5\) and ignores \\#!\[type = "..."\]\ and \\#!\[schema = "..."\]\ attributes. Additionally, it fixes parsing of integer type suffixes for non-decimal numbers.
(repo-wide) · high confidence
Test coverage
Added fuzzer for RON string parsing; Expanded test coverage for RON serialization and deserialization features.
Dependencies
RON library updated to version 0.12.2 with dependency and MSRV changes
The RON crate has been updated to version 0.12.2, raising the Minimum Supported Rust Version (MSRV) to 1.64.0. Key dependency updates include upgrading \base64\ to 0.22 (now a dev-dependency for testing), \bitflags\ to 2.1, \indexmap\ to 2.0, and \serde\/\serde\_derive\ to 1.0.193. The library also introduces a new \integer128\ feature to support 128-bit integers and adds several new examples including \transcode\, \base64\, and \decode\_file\.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 72 → 67 (-4.7)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 92 → 86 (-5.5)
- Architecture 99 → 99 (-0.4)
- Maturity 55 → 54 (-0.4)
- Readiness 91 → 72 (-19.6)
- Security 82 → 82 (+0.0)
Resolved (2)
- Inverted test pyramid
- Off-boarding risk: anonymized user #1
New (20)
- ClassTooLong: Serializer (src/ser/mod.rs)
- Duplicated block (7 lines × 2) (src/ser/mod.rs)
- Edited copies of one member (3 members, 18+ corresponding lines) (src/ser/mod.rs)
- Edited copies of one member (3 members, 20+ corresponding lines) (src/value/number.rs)
- Edited copies of one member (3 members, 8+ corresponding lines) (src/de/value.rs)
- Edited copies of one member (4 members, 15+ corresponding lines) (src/ser/mod.rs)
- Edited copy of a member (10 corresponding lines) (src/parse.rs)
- Edited copy of a member (11 corresponding lines) (src/util/span_substring.rs)
- Edited copy of a member (13 corresponding lines) (src/ser/mod.rs)
- Edited copy of a member (17 corresponding lines) (src/ser/mod.rs)
- Edited copy of a member (18 corresponding lines) (src/de/mod.rs)
- Edited copy of a member (18 corresponding lines) (src/util/span_substring.rs)
- Edited copy of a member (21 corresponding lines) (src/ser/mod.rs)
- Edited copy of a member (21 corresponding lines) (src/ser/mod.rs)
- FileTooLong: ser/mod.rs (src/ser/mod.rs)
- Hotspot: src/de/mod.rs (src/de/mod.rs)
- Hotspot: src/ser/mod.rs (src/ser/mod.rs)
- Low coverage: src/de/tag.rs (src/de/tag.rs)
- Low coverage: src/value/number.rs (src/value/number.rs)
- Off-boarding risk: anonymized user #1
Changes since last survey
- 9 commits — 7 feature/other, 2 fixes
By area
- (root) — 8 commits
- src/de — 1 commit
Notable commits
- fix: Fix compact ranges with unwrapped newtype bounds (#627)
- fix: Fix the article in integer type mismatch errors (#654)
- change: Allow whitespace and comments inside a typed unit (#650)
- change: Allow whitespace between a tuple struct name and its parentheses (#651)
- change: Always end path_meta doc comments with a line break (#652)
- change: Reject Some without parentheses when implicit_some is enabled (#655)
- change: Reject an unescaped apostrophe in char and byte literals (#656)
- change: Stop serialised compounds from raising the serializer recursion limit (#653)
- change: Write runs of plain ASCII at once when escaping strings (#657)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
ron-rs/ron was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit d6927a3742758ea191df945f82591ee8f8c5e5c0 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.