| Crates.io | spigot |
| lib.rs | spigot |
| version | 0.1.2 |
| created_at | 2021-09-25 22:27:50.103788+00 |
| updated_at | 2022-04-16 02:42:44.643718+00 |
| description | parser for valve's keyvalue file format (gameinfo.txt, vmt, etc.) |
| homepage | |
| repository | |
| max_upload_size | |
| id | 456322 |
| size | 6,589 |
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()));
}