Experimental Rust library for handling X-Midas Bluefiles.
Add the following to your project's Cargo.toml
:
[dependencies]
bluefile = "*"
use std::fs::File;
use bluefile::read_header;
let file = File::open("/path/to/bluefile").unwrap();
let header = read_header(&file).unwrap();
println!("{}", header.type_code);
println!("{}", header.data_type);
...
Additional examples can be found in the tests
directory and in the bluejay
utility.
Bluejay is a command line utility for getting bluefile header info in JSON format.
cargo install bluefile
bluejay /path/to/bluefile
cargo clippy
cargo test