#experimental #header #read #cargo #x-midas #bluefiles

bin+lib bluefile

Experimental Rust library for handling X-Midas Bluefiles

9 unstable releases (3 breaking)

0.5.4 Nov 10, 2024
0.5.3 Nov 3, 2024
0.4.0 Oct 25, 2024
0.2.1 Jul 24, 2024
0.1.0 Jul 10, 2024

#894 in Parser implementations

Download history 2/week @ 2024-09-18 7/week @ 2024-09-25 1/week @ 2024-10-09 134/week @ 2024-10-23 550/week @ 2024-10-30 146/week @ 2024-11-06 17/week @ 2024-11-13 3/week @ 2024-11-20

186 downloads per month

Apache-2.0

36KB
582 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