yule_log
A streaming ULOG parser written in rust.
This parser is designed to be fast and efficient, and to be able to handle large ULOG files without loading them into memory all at once.
Usage
Example usage:
let reader = new;
let parser = new
.include_header
.include_timestamp
.include_padding
.build?;
for result in parser
This example is also available in the examples directory as simple.rs.
Installing Rust
To use this library, you will need to have Rust installed. You can install Rust by following the instructions found here: https://www.rust-lang.org/learn/get-started.
Once Rust is installed you can run the eexample as follows:
cargo run --example simple data/short_list.ulg
Example Programs
The examples/ directory contains several example programs that demonstrate how to use the ULOG parser. These include:
- simple.rs: A minimal example demonstrating basic ULOG parsing functionality. (Shown above)
- ulogcat.rs: Shows how to emit the parsed data back into a ULOG file. This example round trips the data, parsing it and re-saving it to a new file. Demonstrates the fidelity of the parser because the emitted ULOG file is typically binary identical to the input ULOG file.
License
This project is licensed under the MIT Licence.