https://github.com/edg-l/teeconfig
A ddnet / teeworlds configuration parser.
https://github.com/edg-l/teeconfig
config ddnet teeworlds
Last synced: 30 days ago
JSON representation
A ddnet / teeworlds configuration parser.
- Host: GitHub
- URL: https://github.com/edg-l/teeconfig
- Owner: edg-l
- License: agpl-3.0
- Created: 2023-07-05T09:03:14.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T12:15:17.000Z (over 1 year ago)
- Last Synced: 2025-03-02T01:30:03.809Z (about 2 months ago)
- Topics: config, ddnet, teeworlds
- Language: Rust
- Homepage: https://docs.rs/teeconfig
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# teeconfig
[](https://crates.io/crates/teeconfig)
[](https://crates.io/crates/teeconfig)
[](https://crates.io/crates/teeconfig)

[](https://docs.rs/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`.
```rust
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())
```