A ddnet / teeworlds configuration parser.
Go to file
2023-10-17 14:14:46 +02:00
.github/workflows Create rust.yml 2023-07-06 12:26:41 +02:00
src builtin 2023-10-17 14:14:46 +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 builtin 2023-10-17 14:14:46 +02:00
config_variables.h update config_variables 2023-10-17 14:05:46 +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 builtin 2023-10-17 14:14:46 +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())