#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

#1006 in Parser implementations

Download history 7/week @ 2024-09-22 2/week @ 2024-09-29 1/week @ 2024-10-06 123/week @ 2024-10-20 365/week @ 2024-10-27 243/week @ 2024-11-03 112/week @ 2024-11-10 7/week @ 2024-11-17 18/week @ 2024-12-08

588 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