Released a TOML library with zero dependencies in Rust.
Source: Dev.to
Overview
Shiguredo is shifting its development focus from C++ to Rust. As part of this transition, we have implemented various libraries in Rust, and we are now releasing a TOML library.
Features
- Zero dependencies – the library has no external dependencies.
- Specification support – compatible with TOML v1.0.0 and v1.1.0.
- Full test suite compatibility – passes the official
toml-testsuite with a 100 % score, indicating full compatibility. - Fuzzing support – extensive fuzz testing ensures robustness against unexpected inputs.
- Rewriting functionality – added based on user requests, using the positional‑tracking mechanism from the
nojsonlibrary.
Implementation Details
- The library builds on Shiguredo’s internal approach of minimizing dependencies by creating and maintaining our own Rust libraries.
- Rewriting capabilities were introduced after fixing several identified bugs, leveraging the positional tracking used in the dependency‑free
nojsonJSON library.
Repository
The source code and documentation are available on GitHub: