# tuna
Tuna is a tool for managing CVARs during game development, as a set of global
global variables, on which manipulation can be built.
At the core, the goal of tuna is to be *easy* to use, while avoiding unsafe
code.
This is how you use it:
``` rust
const ENABLE_LOGGING: tuna::Boolean = tuna::Boolean::new("logging", "enable", false);
fn main() {
ENABLE_LOGGING.register();
loop {
if (ENABLE_LOGGING.read()) {
eprintln!("looping once");
}
}
}
```
If you enable the `auto-register` feature, you can skip the first register call
at some performance cost.
Note that `tuna` is a work in progress! I'm working on it due to a need, but I
want to dogfood it while I build it - not build a whole thing on its own.
## Alternatives:
* [cvar](https://crates.io/crates/cvar) - much more customizable, less batteries-included