13 releases (breaking)

0.10.0 Mar 23, 2020
0.9.2 Jun 29, 2019
0.9.0 May 29, 2019
0.8.0 Nov 9, 2018
0.3.0 Jul 9, 2017

#1071 in Encoding

Download history 215/week @ 2024-07-21 393/week @ 2024-07-28 236/week @ 2024-08-04 252/week @ 2024-08-11 155/week @ 2024-08-18 310/week @ 2024-08-25 305/week @ 2024-09-01 226/week @ 2024-09-08 222/week @ 2024-09-15 317/week @ 2024-09-22 324/week @ 2024-09-29 85/week @ 2024-10-06 149/week @ 2024-10-13 167/week @ 2024-10-20 171/week @ 2024-10-27 184/week @ 2024-11-03

675 downloads per month
Used in 85 crates (50 directly)

MPL-2.0 license

140KB
3.5K SLoC

toml-query

Work with toml-rs 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

~3–4.5MB
~87K SLoC