-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlib.rs
More file actions
38 lines (35 loc) · 1 KB
/
lib.rs
File metadata and controls
38 lines (35 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! BBL Parser Library
//!
//! A Rust library for parsing Betaflight/EmuFlight/INAV blackbox log files.
//! This library provides both in-memory data access and export capabilities.
//!
//! # Examples
//!
//! Basic usage:
//! ```rust,no_run
//! use bbl_parser::{parse_bbl_file, ExportOptions};
//! use std::path::Path;
//!
//! let export_options = ExportOptions::default();
//! let log = parse_bbl_file(Path::new("flight.BBL"), export_options, false).unwrap();
//! println!("Found {} frames", log.sample_frames.len());
//! ```
// Module declarations
pub mod conversion;
pub mod error;
pub mod export;
pub mod parser;
pub mod types;
// Re-export everything from modules for convenience
#[allow(ambiguous_glob_reexports)]
pub use conversion::*;
#[allow(ambiguous_glob_reexports)]
pub use error::*;
#[allow(ambiguous_glob_reexports)]
pub use export::*;
#[allow(ambiguous_glob_reexports)]
pub use parser::*;
#[allow(ambiguous_glob_reexports)]
pub use types::*;
// Re-export Result type for convenience
pub use anyhow::Result;