Skip to content

Add option to generate typed constants from DBC BA_ attributes#175

Open
felixvanoost wants to merge 6 commits into
oxibus:mainfrom
felixvanoost:emit-user-defined-structs
Open

Add option to generate typed constants from DBC BA_ attributes#175
felixvanoost wants to merge 6 commits into
oxibus:mainfrom
felixvanoost:emit-user-defined-structs

Conversation

@felixvanoost

@felixvanoost felixvanoost commented Jul 9, 2026

Copy link
Copy Markdown

Adds an option to generate typed constants from DBC BA_ attributes and place them within the existing generated message types. This is useful for DBCs that define per-message or per-signal metadata, like AUTOSAR E2E protection or SecOC parameters.

Users define a struct that their crate owns and specify where each field should come from by adding one or more AttributeStruct entries to the generator Config. I have created an example to show the syntax in the README.

@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.27027% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/lib.rs 95.27% 0 Missing and 7 partials ⚠️

📢 Thoughts on this report? Let us know!

@felixvanoost felixvanoost self-assigned this Jul 10, 2026
@felixvanoost felixvanoost added the enhancement New feature or request label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant