TOML config
The document is config/demo.toml. There is no restart and no cache: every request reads the file, and the forms change it.
write
Current greeting: Hello from config/demo.toml
update
Visits: 0. First visit: never. Last visit: never.
update merges stats, so the timestamp it writes keeps the count, and the count it writes keeps first_visit.
read
let visits: u64 = dust::tomconf::read("demo", "stats.visits")?.unwrap_or(0);