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

#1275 in Parser implementations

Download history 35/week @ 2024-07-23 32/week @ 2024-07-30 1/week @ 2024-08-20 1/week @ 2024-09-10 30/week @ 2024-09-24 43/week @ 2024-10-01

480 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–16MB
~219K SLoC