3 stable releases

1.0.2 Feb 9, 2025

#170 in Configuration

Download history 280/week @ 2025-02-04 79/week @ 2025-02-11

359 downloads per month

MIT/Apache

22KB

Icon.fsl Parser for Rust

License License

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

  1. Fork the repo (https://github.com/FluidServer/fsl.rs)
  2. Create your feature branch (git checkout -b feature/yournewfeature)
  3. Commit your changes (git commit -am 'Add some change')
  4. Push to the branch (git push origin feature/yournewfeature)
  5. Create a new pull request

SPDX-License-Identifier: MIT or Apache-2.0

No runtime deps