# toml

Rust TOML Parser

Repository: https://github.com/toml-rs/toml
Canonical: https://ross.abutalabs.com/products/toml
Homepage: https://docs.rs/toml
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust, toml
Last push: 2026-09-03T01:03:49+00:00
Link (homepage): https://docs.rs/toml
Link (site_page): https://docs.rs/about/redirections
Link (site_page): https://docs.rs/
Link (site_page): https://docs.rs/crate/toml/latest
Link (site_page): https://docs.rs/crate/toml/latest/features

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 35, longevity 100
- inputs: {"age_days": 3351, "days_push": 0, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1070, forks 161 (observed 2026-09-03T02:15:19.891742+00:00)

## What it is
A native Rust encoder and decoder for TOML-formatted files and streams, providing serde Serialize/Deserialize support. The repository also includes companion crates like toml_edit for format-preserving editing and toml_parser/toml_writer for low-level access.

## Use cases
- parse toml config files in rust
- deserialize toml into rust structs with serde
- edit toml files while preserving formatting and comments
- serialize rust structs to toml
- read cargo-style configuration files

## When to choose
- you need serde-compatible TOML parsing or serialization in Rust
- you need format-preserving TOML editing via toml_edit
- you need a no_std-capable TOML implementation

## When to avoid
- you need a general-purpose config format beyond TOML
- you are not working in Rust

## Facets
- artifact type: library
- maturity: stable
- function: serialization, parser, developer-tools
- domain: developer-tools, files, parsers
- platform: rust, cross-platform
- tags: toml, serde, format-preserving-editing, no-std, configuration-format

## Member repositories
- toml-rs/toml (main) score 77
- toml-rs/toml-rs (mirror) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:19.891742+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:54:15.313483+00:00, confidence not recorded.
  - readme: https://github.com/toml-rs/toml (fetched 2026-09-03T02:15:19.891742+00:00, sha b8c1ee4046e8)
  - homepage: https://docs.rs/toml (fetched 2026-08-29T12:56:29.060590+00:00, sha c3326123fe13)
  - site_page: https://docs.rs/about/redirections (fetched 2026-08-29T12:56:29.077671+00:00, sha 1b1efd93105f)
  - site_page: https://docs.rs/ (fetched 2026-08-29T12:56:29.063566+00:00, sha b57fc633766e)
  - site_page: https://docs.rs/crate/toml/latest (fetched 2026-08-29T12:56:29.066661+00:00, sha 47808ae16159)
  - site_page: https://docs.rs/crate/toml/latest/features (fetched 2026-08-29T12:56:29.069239+00:00, sha c8dbf4c6b3cf)
  - site_page: https://docs.rs/about (fetched 2026-08-29T12:56:29.070880+00:00, sha 29ab7986fbf5)
  - site_page: https://docs.rs/about/badges (fetched 2026-08-29T12:56:29.072374+00:00, sha 6588cac258af)
  - site_page: https://docs.rs/about/builds (fetched 2026-08-29T12:56:29.074189+00:00, sha 811231ca4680)
  - site_page: https://docs.rs/about/metadata (fetched 2026-08-29T12:56:29.076180+00:00, sha 0dcdccb2b2b2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
