toml-query

Crates.iotoml-query
lib.rstoml-query
version0.10.0
sourcesrc
created_at2017-05-16 19:48:16.889791
updated_at2020-03-23 13:44:50.870425
descriptionLibrary to work with toml::Value objects more conveniently
homepage
repositoryhttps://github.com/matthiasbeyer/toml-query
max_upload_size
id14854
size156,935
Matthias Beyer (matthiasbeyer)

documentation

README

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

Commit count: 350

cargo fmt