#quake #quake-world #qtv

yanked quake_qtvinfo

Parse QTV info strings

3 releases (breaking)

0.3.0 Jul 16, 2024
0.2.0 Jul 16, 2024
0.1.0 May 4, 2024

#15 in #quake-world

Download history 246/week @ 2024-07-15 39/week @ 2024-07-29 18/week @ 2024-09-16 21/week @ 2024-09-23 4/week @ 2024-09-30

175 downloads per month
Used in qtvstat

MIT license

6KB

quake_qtvinfo Test crates docs.rs

Parse QTV info strings

Usage

use quake_qtvinfo::Settings;

let settings = Settings::from(r#"\hostname\QUAKE.SE KTX Qtv\maxclients\100\*version\QTV 1.14"#);
assert_eq!(settings.version, Some("QTV 1.14".to_string()));
assert_eq!(settings.maxclients, Some(100));
assert_eq!(settings.hostname, Some("QUAKE.SE KTX Qtv".to_string()));

Fields

pub struct Settings {
    pub hostname: Option<String>,
    pub maxclients: Option<u32>,
    pub version: Option<String>,
}

See also

Dependencies

~24KB