Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 850 Bytes

CONTRIBUTING.md

File metadata and controls

36 lines (24 loc) · 850 Bytes

Development

Thanks for looking into contributing to this project!

Quick overview

# generate messages.rs to look at results
cargo run -p dbc-codegen-cli -- testing/dbc-examples/example.dbc testing/can-messages/src

# build everything
cargo build --all

# run all tests
cargo test --all

# format before committing anything
cargo fmt --all

Testing setup

Please refer to the testing README file

Generate .kdc from .dbc

Use canmatrix if you need to generate a new .kcd file from a .dbc.

# https://canmatrix.readthedocs.io/en/latest/installation.html
pip install canmatrix
pip install git+https://github.com/ebroecker/canmatrix#egg=canmatrix[kcd]

# generate .kcd
canconvert testing/dbc-examples/example.dbc testing/dbc-examples/example.kcd