~matthiasbeyer/toml-query

Query library for TOML objects
Merge branch 'to-srht'
Fix: Remove statement that will be optimized out by the compiler
Fix: Remove unused crate import

refs

master
browse  log 
v0.10.0
release notes 

clone

read-only
https://git.sr.ht/~matthiasbeyer/toml-query
read/write
git@git.sr.ht:~matthiasbeyer/toml-query

You can also use your local clone with git send-email.

#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