#toml #extension

toml-query

Library to work with toml::Value objects more conveniently

12 releases (breaking)

✓ Uses Rust 2018 edition

0.9.2 Jun 29, 2019
0.9.0 May 29, 2019
0.8.0 Nov 9, 2018
0.7.0 Jul 19, 2018
0.3.0 Jul 9, 2017

#1 in #toml

Download history 11195/week @ 2019-04-16 12005/week @ 2019-04-23 12820/week @ 2019-04-30 10476/week @ 2019-05-07 11371/week @ 2019-05-14 17163/week @ 2019-05-21 20248/week @ 2019-05-28 19499/week @ 2019-06-04 20667/week @ 2019-06-11 20864/week @ 2019-06-18 15421/week @ 2019-06-25 12957/week @ 2019-07-02 10137/week @ 2019-07-09 6990/week @ 2019-07-16 6801/week @ 2019-07-23

65,983 downloads per month
Used in 77 crates (44 directly)

MPL-2.0 license

137KB
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

~4MB
~95K SLoC