No seriously, it's simple. With only 26 lines of code, it's one of the tiniest configuration languages there is.
key:value
x:5
order_reached:true
rust_is_awesome:true
Rakh is a Rust crate and it just has a single function -- interpret()
. It returns a Result<HashMap<String, String>, Error>
. You just pass Rakh code into it. Like this -
```rs
use rakh;
fn main() { let config = rakh::interpret("rustisawesome:true").unwrap();
println!("{}", config.get("rust_is_awesome")); // true
} ``` Take a peek at https://docs.rs/rakh for more docs.. you won't really need them though :P
Rakh is under the very permissive Blue Oak 1.0.0 license, take a look at LICENSE.md
for more information.