#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

#8 in Build Utils

Download history 6234/week @ 2018-12-20 5773/week @ 2018-12-27 6301/week @ 2019-01-03 6097/week @ 2019-01-10 6309/week @ 2019-01-17 6507/week @ 2019-01-24 12107/week @ 2019-01-31 14880/week @ 2019-02-07 12326/week @ 2019-02-14 13562/week @ 2019-02-21 11377/week @ 2019-02-28 13432/week @ 2019-03-07 12262/week @ 2019-03-14 11198/week @ 2019-03-21 12657/week @ 2019-03-28

28,379 downloads per month
Used in 69 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

~3.5MB
~64K SLoC