Crates.io | teeconfig |
lib.rs | teeconfig |
version | 0.1.0 |
source | src |
created_at | 2023-07-06 10:25:25.952577 |
updated_at | 2023-07-07 10:20:31.77396 |
description | A teeworlds/ddnet config parser. |
homepage | |
repository | https://github.com/edg-l/teeconfig/ |
max_upload_size | |
id | 909727 |
size | 128,465 |
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())