Expand description
§teeconfig
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())
Structs§
- CFGFlags
- Config option flags.
- Config
Entry - Config
Line
Enums§
Functions§
- map_
with_ names - Converts a list of config entries to a hashmap with name -> entry.
- parse_
config - Parses a ddnet / teeworlds config file. Like
settings_ddnet.cfg
- parse_
config_ variables - Parses the given header file containing the MACRO_CONFIG_XXX options.