4 releases

0.1.0 Jul 7, 2023
0.1.0-alpha.2 Jul 6, 2023

#12 in #ddnet

Download history 1/week @ 2024-02-21 8/week @ 2024-02-28 16/week @ 2024-03-13 1/week @ 2024-03-27 5/week @ 2024-04-03 84/week @ 2024-04-10

90 downloads per month

AGPL-3.0

36KB
272 lines

teeconfig

Version Downloads License Rust Docs

A ddnet / teeworlds configuration parser.

It recognizes the available options by parsing source files with MACRO_CONFIG_ lines such as src/engine/shared/config_variables.h.

use teeconfig::parse_config_variables;

let header_source = include_str!("../config_variables.h");
let vars = parse_config_variables(header_source).unwrap();
assert!(!vars.is_empty())

Dependencies

~1.6–3.5MB
~27K SLoC