fast_config
A small and easy-to-use Rust crate to handle config files. Currently only supports: JSON5, TOML, and YAML. But more formats are planned to be added later.
UPDATE:
I've accidentally stumbled across a crate with the exact same name my crate had, made by someone with way more experience than me, who's crate also does the exact same things but better.
I swear I checked Crates.io right before naming my project simple_config
Either way, this project is now called fast_config, because it's the only name available.
Feel free to check out the other, way better simple_config here.
(I don't have any affiliation with it, only bad luck by crates.io somehow bugging out when i chose the original name)
I will still continue work on this project, for use in my own projects, but I wouldn't recommend other people using it XD
Why this crate?
- It's small and fast (uses compile-time features to remove any unnecessary code)
- It's safe and robust (uses Rust's structs to store data, instead of HashMaps)
- Ridiculously simple to use (only takes 3 lines of short code to make a config file, write/read something, and close it)
⚠ Documentation and tests are still being made! ⚠
I'm still working on this crate, and it's in somewhat-early-access. While I haven't managed to find any bugs myself, documentation might be a little weird or uncomplete at the current moment.
Examples:
use Config;
use ;
// Creating a config struct to store our data
// Storing the default values for our data
;
View the examples directory for more advanced examples.