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

bin+lib bluefile

Experimental Rust library for handling X-Midas Bluefiles

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

Download history 137/week @ 2024-07-14 112/week @ 2024-07-21 22/week @ 2024-07-28 1/week @ 2024-08-04 7/week @ 2024-09-22 2/week @ 2024-09-29 1/week @ 2024-10-06 123/week @ 2024-10-20 218/week @ 2024-10-27

342 downloads per month

Apache-2.0

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