3 ms·
Started a small project with rust and serde(toml config). Having static checking of config an its parsing felt really good.
by agumonkey 4y ago
Started a small project with rust and serde(toml config). Having static checking of config an its parsing felt really good.
- Gigachad 4y agoWe started just writing configs in typescript which has the benefit of static checking in your editor with suggestions/underlines. Could likely do the same in rust.
- agumonkey 4y agoI'm afraid by typescript "typesystem" even more so than rust borrows/lifetime. It's so versatile and stringy .. that said it's still good to have some.
- Gigachad 4y agoWhat I'm proposing is rather than have Rust validate yaml/toml files, just write the actual config itself in Rust so that your editor can verify/show issues before running. Unless you require ability to edit configs without recompile.