I really love TOML files

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • minimal-yaml

    A minimalist, zero-copy parser for a strict subset of the Yaml specification.

    StrictYAML does away with some of the strange behaviour YAML has with booleans, among other things. There's a similar library for Rust, minimal-yaml, but it doesn't have serde integration ATM.

  • validator

    Simple validation for Rust structs (by Keats)

    Fair points... but now that I've gotten used to using Serde to deserialize my configurations and enforce schema at the same time (with the help of the validator crate for the fancier invariants), I don't want to consider any configuration format that doesn't have a Serde deserializer, and not having a Serde serializer cripples my ability to do more complex composition of components to produce solutions with compile-time Schema correctness.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • strictyaml

    Type-safe YAML parser and validator.

    It's not that verbose though? Sure you have to repeat yourself for hierarchy (which again, is done that way on purpose, and you shouldn't run into deep structures because again, that means you're doing serialization), but the syntax is pretty, well, clean otherwise. YAML has noisy syntax, and even their example has pretty noisy syntax in StrictYAML. I don't know what the hell is going on from just looking at it as a developer, and I won't until I learn about StrictYAML. That can't be said for TOML, or JSON. And they try to use serialization to show TOML is somehow worse, you would never use TOML for this situation, What configuration is going on here? It looks like this "story" is trying to encode documentation or something? Strict yaml's competitors are YAML and JSON, not TOML.

  • ron

    Rusty Object Notation

    Check out RON

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts