A ddnet / teeworlds configuration parser.
Go to file
2023-07-07 12:20:15 +02:00
.github/workflows Create rust.yml 2023-07-06 12:26:41 +02:00
src prog 2023-07-07 12:20:05 +02:00
.gitattributes docs 2023-07-06 12:19:28 +02:00
.gitignore initial 2023-07-05 11:03:23 +02:00
build.rs initial 2023-07-05 11:03:23 +02:00
Cargo.toml version 2023-07-07 12:20:15 +02:00
config_variables.h initial 2023-07-05 11:03:23 +02:00
LICENSE Create LICENSE 2023-07-06 12:20:31 +02:00
README.md fix radme 2023-07-06 12:33:00 +02:00
variables.h prog 2023-07-07 12:20:05 +02:00

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())