Expand description
§can_tools
Rust utilities for parsing and modeling automotive CAN data.
The default feature set enables both the .dbc database parser and the .asc
trace parser. Use Cargo feature flags to pick only the pieces you need.
§Highlights
- DBC parser: loads CAN databases from
.dbcinto a SlotMap-backedDatabaseDBC. The reader streams the file line by line, decodes Windows‑1252, and applies a single‑pass transliteration for a few special characters. - ASC parser: reads Vector ASCII traces (
.asc) into a decoupledCanLog. It keeps per(id, channel)only the index of the most recent frame and formats absolute timestamps with a lightweight formatter.
Docs updated: 2025-10-24
Re-exports§
pub use crate::asc::types::errors::AscParseError;pub use crate::dbc::types::errors::DatabaseError;pub use crate::dbc::types::errors::DbcParseError;pub use crate::dbc::types::errors::MessageLayoutError;pub use crate::asc::types::canlog::resolve_message_signals;