#dead #configuration-language

rakh

A dead simple configuration language

6 releases (stable)

1.1.2 Feb 7, 2022
1.1.1 Jan 4, 2022
1.0.1 Jan 4, 2022
0.1.0 Dec 22, 2021

#965 in Configuration

Custom license

4KB

Rakh! A dead simple configuration language.

No seriously, it's simple. With only 37 (significant) lines of code, it's one of the tiniest configuration languages there is.

Show me some examples then!

key:value
x:5
order_reached:true
rust_is_awesome:true

How to use it?

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
}

LICENSE

Rakh is under the very permissive Blue Oak 1.0.0 license, take a look at LICENSE.md for more information.

Dependencies

~255–710KB
~17K SLoC