Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate full crate #35

Open
killercup opened this issue Mar 30, 2021 · 1 comment
Open

Generate full crate #35

killercup opened this issue Mar 30, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@killercup
Copy link
Member

My main way of using this would be to run dbc-codegen some.dbc crates/can-messages. The target would probably always be a crate just for the CAN de/encode part, and I'd check that code into the repo.

For that it'd be neat to:

  • have the CLI generate the full crate
    • with all deps
    • with a nice readme even
    • maybe even an example file just for fun
  • put the "static" content (error types, helper functions) into their own files so they don't change when updating the DBC

As I'm not currently using this however, it is not a prio just yet.

@kilpkonn
Copy link

FYI I have some experimentations for something like this here: https://github.com/kilpkonn/dbc-codegen
It is obviously kind of hacky, but likely useful to take as a inspiration/baseline.

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

No branches or pull requests

2 participants