#extension #toml

toml-query

Library to work with toml::Value objects more conveniently

14 releases (breaking)

0.11.0 Nov 11, 2025
0.10.0 Mar 23, 2020
0.9.2 Jun 29, 2019
0.8.0 Nov 9, 2018
0.3.0 Jul 9, 2017

#315 in Data structures

Download history 265/week @ 2025-12-27 270/week @ 2026-01-03 108/week @ 2026-01-10 357/week @ 2026-01-17 456/week @ 2026-01-24 350/week @ 2026-01-31 212/week @ 2026-02-07 369/week @ 2026-02-14 600/week @ 2026-02-21 5684/week @ 2026-02-28 7365/week @ 2026-03-07 525/week @ 2026-03-14 484/week @ 2026-03-21 1589/week @ 2026-03-28 2415/week @ 2026-04-04 1464/week @ 2026-04-11

6,055 downloads per month
Used in 85 crates (50 directly)

MPL-2.0 license

140KB
3.5K SLoC

toml-query

A crate to help executing queries on toml data structures inside Rust code.


toml-query

Work with toml Value objects in an easy way:

value.read("foo.bar.a.b.c")                       // -> Result<Option<&Value>, Error>
value.set("foo.bar.a.b.c", Value::Integer(1))     // -> Result<Option<Value>, Error>
value.insert("foo.bar.a.b.c", Value::Integer(1))  // -> Result<Option<Value>, Error>
value.delete("foo.bar.a.b.c")                     // -> Result<Option<Value>, Error>

Development

This library was developed using a Test-Driven-Development approach from the ground up.

Goals:

  • Nice, clean and human-readable error messages in the Error types
  • Easy to use library

Non-Goals:

  • High performance. TOML objects shouldn't be enormous. The library may get faster at some point in time, but it is not a primary goal of the development.

License

MPL 2.0

Dependencies

~2.8–4.5MB
~82K SLoC