Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
# Change Log

## [6.0.0](https://github.com/marcelbuesing/can-dbc/tree/6.0.0) (2024-02-08)
## [6.0.0](https://github.com/oxibus/can-dbc/tree/6.0.0) (2024-02-08)
- Update dependencies.
- Breaking: PR #13 and #14. Thank you @erzoe and @kistenklaus.
Replace u32 in MessageId with enum type to raise awareness that the raw dbc message ids contain the extended bit.
Add `MessageId.raw()` which returns the previous raw identifier including the extended id!

## [5.0.0](https://github.com/marcelbuesing/can-dbc/tree/5.0.0) (2022-06-22)
## [5.0.0](https://github.com/oxibus/can-dbc/tree/5.0.0) (2022-06-22)
- Add support for dbcs with [extended multiplex messages](https://cdn.vector.com/cms/content/know-how/_application-notes/AN-ION-1-0521_Extended_Signal_Multiplexing.pdf). Thank you @pbert519!
- Breaking: `fn message_multiplexor_switch` now returns `Result<Option<&Signal>, Error>` instead of `Option<&Signal>`.
This is necessary due to the possibility of a message having multiple multiplexor switches.

## [4.0.0](https://github.com/marcelbuesing/can-dbc/tree/4.0.0) (2021-11-15)
## [4.0.0](https://github.com/oxibus/can-dbc/tree/4.0.0) (2021-11-15)
- Migrate from nom 4.2 to nom 7.1.
- Allow "random" order of elements in DBC. They still have to be in a block e.g. all messages or comments.
- Remove verbose error in returned error
- Return `&str` of remaining unparsed content instead of `Vec<u8>`.
- Mark `DBC::from_str` as deprecated and replace it with TryFrom::from_str

## [3.0.2](https://github.com/marcelbuesing/can-dbc/tree/3.0.1) (2020-10-28)
## [3.0.2](https://github.com/oxibus/can-dbc/tree/3.0.1) (2020-10-28)
- Fix: Allow trailing whitespaces in dbc. Thanks @killercup.

## [3.0.1](https://github.com/marcelbuesing/can-dbc/tree/3.0.1) (2019-05-17)
## [3.0.1](https://github.com/oxibus/can-dbc/tree/3.0.1) (2019-05-17)
- Fix: Allow zero time occurence of BU name
- Remove Cargo.lock file

## [3.0.0](https://github.com/marcelbuesing/can-dbc/tree/3.0.0) (2019-11-25)
## [3.0.0](https://github.com/oxibus/can-dbc/tree/3.0.0) (2019-11-25)
- BREAKING: Pass `MessageId`'s by value
- Cleanup clippy warnings

## [2.0.0](https://github.com/marcelbuesing/can-dbc/tree/2.0.0) (2019-04-09)
## [2.0.0](https://github.com/oxibus/can-dbc/tree/2.0.0) (2019-04-09)
- Change CAN message id type from `u64` to `u32`.
- Update dependencies

## [1.1.0](https://github.com/marcelbuesing/can-dbc/tree/1.1.0) (2019-01-18)
## [1.1.0](https://github.com/oxibus/can-dbc/tree/1.1.0) (2019-01-18)
- Add optional feature `with-serde` and derive Serialize for structs and enums.

## [1.0.1](https://github.com/marcelbuesing/can-dbc/tree/1.0.1) (2019-01-15)
## [1.0.1](https://github.com/oxibus/can-dbc/tree/1.0.1) (2019-01-15)

### dbcc
- Add first version of dbc to rust compiler
Expand Down
8 changes: 2 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ name = "can-dbc"
version = "6.0.0"
license = "MIT"
description = "A parser for the DBC format. The DBC format is used to exchange CAN network data."
homepage = "https://github.com/marcelbuesing/can-dbc"
repository = "https://github.com/marcelbuesing/can-dbc.git"
repository = "https://github.com/oxibus/can-dbc"
authors = ["marcelbuesing <[email protected]>"]
keywords = ["dbc", "can", "automotive", "ecu"]
categories = ["embedded", "no-std", "encoding", "parsing"]
edition = "2021"
rust-version = "1.74"

[badges]
travis-ci = { repository = "marcelbuesing/can-dbc", branch = "dev" }
codecov = { repository = "marcelbuesing/can-dbc", branch = "dev", service = "github" }

[dependencies]
derive-getters = "0.5"
nom = { version = "8.0", features = ["alloc"] }
Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# can-dbc
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
[![VERSION](https://img.shields.io/crates/v/can-dbc.svg)](https://crates.io/crates/can-dbc)
[![Actions Status](https://github.com/marcelbuesing/can-dbc/workflows/Continuous%20integration/badge.svg)](https://github.com/marcelbuesing/can-dbc/actions?query=workflow%3A"Continuous+integration")
[![codecov](https://codecov.io/gh/marcelbuesing/can-dbc/branch/dev/graph/badge.svg)](https://codecov.io/gh/marcelbuesing/can-dbc)
[![docs](https://docs.rs/can-dbc/badge.svg)](https://docs.rs/can-dbc)
[![Cargo Deny Status](https://img.shields.io/badge/cargo--deny-license%20checked-green)](https://github.com/marcelbuesing/can-dbc/actions?query=workflow%3A"Continuous+integration")

[![GitHub repo](https://img.shields.io/badge/github-oxibus/can--dbc-8da0cb?logo=github)](https://github.com/oxibus/can-dbc)
[![crates.io version](https://img.shields.io/crates/v/can-dbc)](https://crates.io/crates/can-dbc)
[![crate usage](https://img.shields.io/crates/d/can-dbc)](https://crates.io/crates/can-dbc)
[![docs.rs status](https://img.shields.io/docsrs/can-dbc)](https://docs.rs/can-dbc)
[![crates.io license](https://img.shields.io/crates/l/can-dbc)](https://github.com/oxibus/can-dbc)
[![CI build status](https://github.com/oxibus/can-dbc/actions/workflows/ci.yml/badge.svg)](https://github.com/oxibus/can-dbc/actions)
[![Codecov](https://img.shields.io/codecov/c/github/oxibus/can-dbc)](https://app.codecov.io/gh/oxibus/can-dbc)
[![Cargo Deny Status](https://img.shields.io/badge/cargo--deny-license%20checked-green)](https://github.com/oxibus/can-dbc/actions)

A CAN-dbc format parser written with Rust's [nom](https://github.com/Geal/nom) parser combinator library. CAN databases are used to exchange details about a CAN network, e.g. what messages are being send over the CAN bus and what data do they contain.

Expand Down