Crates.io | gpmf |
lib.rs | gpmf |
version | 0.1.2 |
source | src |
created_at | 2023-03-22 20:51:46.184762 |
updated_at | 2023-03-25 23:17:38.238028 |
description | WIP gpmf implementation |
homepage | |
repository | https://github.com/apps4uco/gpmf |
max_upload_size | |
id | 817474 |
size | 87,113 |
WIP: Currently successfully parses all raw test data and logs the results.
If you have a file that is not handled please submit an issue, attaching the raw metadata file
use std::path::Path;
use gpmf::byteorder_gpmf::parse_gpmf;
fn main() -> anyhow::Result<()> {
let path = Path::new("samples/karma.raw");
let text = std::fs::read(path)?;
let res=parse_gpmf(text.as_slice())?;
println!("{:?}",res);
Ok(())
}
use std::path::Path;
use gpmf::byteorder_gpmf::parse_gpmf;
use tracing::Level;
use tracing_subscriber::FmtSubscriber;
fn main() -> anyhow::Result<()> {
let subscriber = FmtSubscriber::builder()
.with_max_level(Level::DEBUG)
.finish();
tracing::subscriber::set_global_default(subscriber)?;
let path = Path::new("samples/Fusion.raw");
let text = std::fs::read(path)?;
let res=parse_gpmf(text.as_slice())?;
println!("{:?}",res);
Ok(())
}
License: MIT OR Apache-2.0