Crates.io | frostwalker |
lib.rs | frostwalker |
version | 0.1.2 |
source | src |
created_at | 2024-01-19 20:08:14.111132 |
updated_at | 2024-07-10 18:25:26.649964 |
description | A TOML-like configuration language parser with zero dependencies outside of std. |
homepage | https://git.colean.cc/threeoh6000/frostwalker/ |
repository | https://git.colean.cc/threeoh6000/frostwalker/ |
max_upload_size | |
id | 1105685 |
size | 49,911 |
A TOML-like configuration language parser for Rust. The crate features a parser stack made up of a lexer, validator, and formatter which all have unit tests and integration tests.
The Rust crate toml
pulls in 8 other crates to do its job, including serde
. While this may not be irksome to basically most Rust developers, I'm used to using severely underpowered Intel hardware so low compile times is a big focus for me so a crate made by me that requires only the standard library compared to one that requires other dependencies is preferrable.
I've also wanted to write a lexer, validator and parser stack for a language and configuration languages are much, much simpler than programming languages like C, Python, and Rust so it is easier to implement these things in a configuration language.
This was mainly made for my web server, herb, where I want to keep dependencies as low as possible just for fun but also for compile times as well. At present, the only dependency for herb is my packet library Packeteer to make the HTTP protocol code more seperated from herb.
I also use a TOML-like language instead of TOML directly as I don't need all the features of TOML nor do I want to implement parsing for all the features of TOML.