#toml #extension

toml-query

Library to work with toml::Value objects more conveniently

13 releases (breaking)

✓ Uses Rust 2018 edition

new 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

#79 in Build Utils

Download history 7010/week @ 2019-12-02 6276/week @ 2019-12-09 6603/week @ 2019-12-16 6152/week @ 2019-12-23 6031/week @ 2019-12-30 6648/week @ 2020-01-06 6349/week @ 2020-01-13 6855/week @ 2020-01-20 6039/week @ 2020-01-27 6400/week @ 2020-02-03 6014/week @ 2020-02-10 6061/week @ 2020-02-17 6366/week @ 2020-02-24 6224/week @ 2020-03-02 6222/week @ 2020-03-09 7076/week @ 2020-03-16

27,209 downloads per month
Used in 91 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

~2.2–3MB
~77K SLoC