can_viewer/
lib.rs

1//! CAN Viewer Library
2//!
3//! Core functionality for the CAN Viewer application.
4//! This library can be used by the main binary or extended by pro versions.
5
6pub mod commands;
7pub mod config;
8pub mod decode;
9pub mod dto;
10pub mod live_capture;
11pub mod state;
12
13// Re-export commonly used types
14pub use state::{AppState, InitialFiles};
15
16// Re-export DTO types for use by pro crate
17pub use dto::{CanFrameDto, DecodedSignalDto};
18
19// Re-export filter types, utilities, and commands for use by pro crate
20pub use commands::filter::{
21    // Shared filter logic for pro crate
22    build_message_cache_from_dbc,
23    // Commands
24    calculate_frame_stats,
25    detect_dlc,
26    filter_frames_with_cache,
27    get_message_counts,
28    match_data_pattern,
29    parse_data_pattern,
30    DbcMessageCache,
31    DbcMessageInfo,
32    // Types
33    DlcDetectionResult,
34    FilterConfig,
35    FilterResult,
36    FrameStats,
37    MatchStatus,
38    MessageCount,
39};
40
41// Re-export MDF4 parsing utilities
42pub use commands::mdf::parse_can_dataframe;
43
44// Re-export config for session management
45pub use config::SessionConfig;