rustc/vendor/toml-query
2019-08-23 03:55:42 -07:00
..
src New upstream version 1.37.0+dfsg1 2019-08-23 03:55:42 -07:00
.cargo-checksum.json New upstream version 1.37.0+dfsg1 2019-08-23 03:55:42 -07:00
Cargo.toml New upstream version 1.37.0+dfsg1 2019-08-23 03:55:42 -07:00
CHANGELOG.md New upstream version 1.37.0+dfsg1 2019-08-23 03:55:42 -07:00
LICENSE New upstream version 1.32.0~beta.2+dfsg1 2018-12-16 10:13:16 -08:00
README.md New upstream version 1.37.0+dfsg1 2019-08-23 03:55:42 -07:00

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