8 unstable releases (3 breaking)
new 0.5.3 | Nov 3, 2024 |
---|---|
0.5.2 | Nov 1, 2024 |
0.4.0 | Oct 25, 2024 |
0.2.1 | Jul 24, 2024 |
0.1.0 | Jul 10, 2024 |
#1154 in Parser implementations
342 downloads per month
36KB
581 lines
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
lib.rs
:
Experimental Rust library for handling X-Midas Bluefiles.
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);
Dependencies
~465KB