#toml #value #value-set #extension #foo-bar #integer-value #work

toml-query

Library to work with toml::Value objects more conveniently

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

#611 in Algorithms

Download history 345/week @ 2023-11-20 292/week @ 2023-11-27 176/week @ 2023-12-04 320/week @ 2023-12-11 286/week @ 2023-12-18 234/week @ 2023-12-25 144/week @ 2024-01-01 316/week @ 2024-01-08 212/week @ 2024-01-15 169/week @ 2024-01-22 136/week @ 2024-01-29 243/week @ 2024-02-05 281/week @ 2024-02-12 176/week @ 2024-02-19 370/week @ 2024-02-26 282/week @ 2024-03-04

1,121 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

~4–5.5MB
~103K SLoC