crypt-configs 0.1.0

A simple config format
Documentation

Crypt Config File Parser

A simple config file format with symple syntax.

Example

# uses '=' to assign values
# All value are either strings, identifiers, or bodies.
name = "Test";
version = "0.1.0";

# '{}' creates a body that can store more items.
options = {
    # ';' is placed after an item
    debug = "true";
    lint = {
        allow_unused = "true";
        # ';' is not used for the last item
        allow_unsafe = "false"
    }
}

Using the parser

use crypt_configs::open_config;

let file = match open_config("path/to/file.crypt") {
    Ok(c) => c,
    Err(e) => {
        println!("failed to parse crypt file: {}", e);
        return
    }
};