Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 988 Bytes

README.md

File metadata and controls

46 lines (32 loc) · 988 Bytes

bluefile

Experimental Rust library for handling X-Midas Bluefiles.

Usage

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

Bluejay is a command line utility for getting bluefile header info in JSON format.

cargo install bluefile
bluejay /path/to/bluefile

Running Tests

cargo clippy
cargo test

Resources