#toml #extension

toml-query

Library to work with toml::Value objects more conveniently

9 releases (breaking)

0.8.0 Nov 9, 2018
0.7.0 Jul 19, 2018
0.6.0 Jan 12, 2018
0.4.0 Oct 12, 2017
0.3.0 Jul 9, 2017

#6 in Build Utils

Download history 6669/week @ 2018-10-22 6491/week @ 2018-10-29 6509/week @ 2018-11-05 6754/week @ 2018-11-12 6541/week @ 2018-11-19 6830/week @ 2018-11-26 7490/week @ 2018-12-03 7303/week @ 2018-12-10 7050/week @ 2018-12-17 5687/week @ 2018-12-24 5921/week @ 2018-12-31 5816/week @ 2019-01-07 6387/week @ 2019-01-14 6231/week @ 2019-01-21 9027/week @ 2019-01-28

28,379 downloads per month
Used in 65 crates (42 directly)

MPL-2.0 license

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

Vacation notice

Notice: I, the author of toml-query, will be on vacation from mid-May 2018 until early 2019. I hope I can continue develop toml-query during that time, but I cannot guarantee that. I hope I can continue development of toml-query after that and I certainly plan to do so.

@TheNeikos as commit rights to this repository and will respond to issues and PRs.

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

~3MB
~63K SLoC