16 releases (breaking)

0.21.0 Feb 29, 2024
0.19.0 Nov 7, 2023
0.12.0 Jun 16, 2023
0.9.4 Mar 24, 2023

#262 in Parser implementations

Download history 1/week @ 2023-12-27 7/week @ 2024-01-03 4/week @ 2024-01-10 13/week @ 2024-01-24 3/week @ 2024-01-31 8/week @ 2024-02-14 39/week @ 2024-02-21 187/week @ 2024-02-28 159/week @ 2024-03-06 61/week @ 2024-03-13 4/week @ 2024-03-20 7/week @ 2024-03-27 11/week @ 2024-04-03

112 downloads per month

MIT license

180KB
5K SLoC

CR14 Logo       EAS Logo       Taltech Logo       NG Logo       NTNU Logo

SDL parser

The SDL parser is a Rust tool designed for parsing Scenario Defined Language files and is a part of Open Cyber Range suite. The SDL parser tool can be used to extract this information from SDL files and convert it into a format that can be used by other tools. With its advanced memory management and error handling features, the SDL parser offers fast parsing times and low memory usage, making it ideal for modern applications that require speed and efficiency in security analysis. If you're looking to integrate SDL files into your Rust project for security analysis, the SDL parser is an essential tool that simplifies the process and ensures accurate and reliable security assessments.

Documentation

Getting Started

To use the SDL parser, you'll need to add it as a dependency to your project. You can do this by adding the following line to your Cargo.toml file:

[dependencies]
sdl-parser = "0.16"

After adding the dependency, you can use the SDL parser in your Rust code:

use sdl_parser::parse_sdl;

fn main() {
        let sdl = r#"
            name: test-scenario
            description: some-description
        "#;
        let scenario = parse_sdl(sdl).unwrap();
        assert_eq!(scenario.name, "test-scenario")
}

Performance

The SDL parser tool is designed for optimal performance. It uses Rust's advanced memory management and error handling features to provide fast parsing times and low memory usage.

Contributions

Contributions to the SDL parser project are welcome and encouraged. If you have any bug reports or feature requests, please file them in the GitHub issues tracker. If you'd like to contribute code, please submit a pull request.

License

The SDL parser tool is released under the MIT License.

Contact Information

If you have any questions or concerns about the SDL Parser tool, please contact us at developers@cr14.ee

Dependencies

~9–18MB
~217K SLoC