A barebones configuration file made for low-dependency rust applications.
Add to your Cargo.toml
file:
toml
[dependancies]
superconf = "0.1"
Then you can parse a basic string like so:
```rust use superconf::parse_str;
let input = "mykey myvalue";
println!("Outputted HashMap: {:#?}", parse_str(input).unwrap()); ```
Here is a complete syntax demonstration:
```none
mykey thevalue
your_path /home/user/Cool\ Path/x.txt ```
You can find more examples in the examples/
directory next to this readme.
Some conventions commonly used for superconf files:
snake_case
.sc
file extensionMade this as a quick custom parser to challange myself a bit and to use for a quick-n-dirty configuration format in the future. It's not the best file format in the world but it gets the job done.