Crates.io | quake_infostring |
lib.rs | quake_infostring |
version | 0.1.0 |
source | src |
created_at | 2024-05-02 11:30:57.965863 |
updated_at | 2024-05-02 11:30:57.965863 |
description | Parse QuakeWorld info strings. |
homepage | |
repository | https://github.com/vikpe/quake_infostring |
max_upload_size | |
id | 1227660 |
size | 4,366 |
Parse QuakeWorld info strings
let info_str = r#"\maxfps\77\matchtag\kombat"#;
let info = quake_infostring::to_hashmap(&info_str);
assert_eq!(info.get("maxfps"), Some(&"77".to_string()));
assert_eq!(info.get("matchtag"), Some(&"kombat".to_string()));
assert_eq!(info.get("MISSING_KEY"), None);