| Crates.io | rakh |
| lib.rs | rakh |
| version | 1.1.2 |
| created_at | 2021-12-22 07:45:14.643969+00 |
| updated_at | 2022-02-07 02:41:44.742442+00 |
| description | A dead simple configuration language. |
| homepage | |
| repository | https://github.com/Yush08/Rakh |
| max_upload_size | |
| id | 501530 |
| size | 4,610 |
No seriously, it's simple. With only 37 (significant) 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 -
use rakh;
fn main() {
let config = rakh::interpret("rust_is_awesome:true").unwrap();
println!("{}", config.get("rust_is_awesome")); // true
}
Rakh is under the very permissive Blue Oak 1.0.0 license, take a look at LICENSE.md for more information.