valve_kv_tools

Crates.iovalve_kv_tools
lib.rsvalve_kv_tools
version0.3.0
sourcesrc
created_at2023-06-21 10:17:32.946532
updated_at2023-06-23 21:50:15.96126
descriptionLossless Valve KeyValue parser, serializer and formatter
homepage
repositoryhttps://github.com/Sarrus1/valve-kv-tools
max_upload_size
id896058
size28,996
Charles (Sarrus1)

documentation

https://docs.rs/valve_kv_tools

README

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);
}
Commit count: 39

cargo fmt