3 releases (breaking)

0.3.0 Jun 23, 2023
0.2.0 Jun 23, 2023
0.1.0 Jun 21, 2023

#26 in #serialize

MIT license

29KB
687 lines

Valve KV Tools

Serializer, Formatter and Linter for Valve's KeyValue format built with Pest

Crates.io Crates.io Github release status Code coverage GitHub

Example

use valve_kv_tools::{format_keyvalue, FormatterConfig};

fn main() {
    let input = r#""key"    "value""#;
    let output = format_keyvalue(input, FormatterConfig::default()).unwrap();
    assert_eq!(input, output);
}

Dependencies

~3–4.5MB
~85K SLoC