| Crates.io | bluefile |
| lib.rs | bluefile |
| version | 0.5.4 |
| created_at | 2024-07-10 01:17:38.695004+00 |
| updated_at | 2024-11-10 18:59:56.937407+00 |
| description | Experimental Rust library for handling X-Midas Bluefiles. |
| homepage | https://github.com/spectriclabs/bluefile |
| repository | https://github.com/spectriclabs/bluefile |
| max_upload_size | |
| id | 1297677 |
| size | 348,448 |
Experimental Rust library for handling X-Midas Bluefiles.
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 is a command line utility for getting bluefile header info in JSON format.
cargo install bluefile
bluejay /path/to/bluefile
cargo clippy
cargo test