#toml #extension

toml-query

Library to work with toml::Value objects more conveniently

8 breaking releases

✓ Uses Rust 2018 edition

0.9.0 May 29, 2019
0.8.0 Nov 9, 2018
0.7.0 Jul 19, 2018
0.6.0 Jan 12, 2018
0.3.0 Jul 9, 2017

#7 in Build Utils

Download history 12276/week @ 2019-02-13 13211/week @ 2019-02-20 12318/week @ 2019-02-27 12842/week @ 2019-03-06 12252/week @ 2019-03-13 10740/week @ 2019-03-20 12570/week @ 2019-03-27 14208/week @ 2019-04-03 13991/week @ 2019-04-10 11425/week @ 2019-04-17 12033/week @ 2019-04-24 12561/week @ 2019-05-01 10243/week @ 2019-05-08 12161/week @ 2019-05-15 18150/week @ 2019-05-22

57,188 downloads per month
Used in 72 crates (43 directly)

MPL-2.0 license

134KB
3K 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.5MB
~69K SLoC