spigot

Crates.iospigot
lib.rsspigot
version0.1.2
sourcesrc
created_at2021-09-25 22:27:50.103788
updated_at2022-04-16 02:42:44.643718
descriptionparser for valve's keyvalue file format (gameinfo.txt, vmt, etc.)
homepage
repository
max_upload_size
id456322
size6,589
Matthew Wozniak (wozniak)

documentation

README

spigot

A parser for Valve's Key-Value format, used in vmt files, gameinfo.txt, etc.

Example:

use spigot::{from_str, Value};

fn main() {
    let gameinfo = spigot::from_str(include_str!("portal/gameinfo.txt"));

    assert_eq!(&gameinfo["GameInfo"]["game"], Value::String("Portal".to_string()));
}
Commit count: 0

cargo fmt