3 stable releases
1.0.2 | Feb 9, 2025 |
---|
#170 in Configuration
359 downloads per month
22KB
.fsl Parser for Rust
FluidServer Configuration Parser
Parse .fsl FluidServer files for your project. Python and C# versions are also available:
What is .fsl?
.fsl is a file format similar to .ini for FluidServer, an open-source POS-system. Checkout the example .fsl file.
Usage Example
Import fsl-rs
and then parse your String
:
use fsl;
use std::collections::HashMap; // for type hints
fn main() {
let parsed: HashMap<String, String> = fsl::parse(
"FluidServer .fsl File, 1.0\nTest=abc\n;Test2=abc\n:Test3=abc".to_string() // or use a variable
);
println!("HashMap = {:?}", parsed) // HashMap = {"Test": "abc", "Version": "1"}
}
Meta
Built by clue <lost@biitle.nl>.
Distributed under the MIT license.
Contributing
- Fork the repo (https://github.com/FluidServer/fsl.rs)
- Create your feature branch (
git checkout -b feature/yournewfeature
) - Commit your changes (
git commit -am 'Add some change'
) - Push to the branch (
git push origin feature/yournewfeature
) - Create a new pull request
SPDX-License-Identifier: MIT or Apache-2.0