Skip to content

Create separate crate for helper types and external dependencies #84

Description

@scootermon

The main issue I want to address is that the generated code currently contains the CanError enum. I have multiple DBC files for different can buses that I would like to abstract in a single crate, but having multiple equal but distinct CanError types makes this really annoying.

To solve this I think it would be good to introduce a separate runtime crate. This crate can then hold common types and also re-export the additional dependencies used by the extra code.
The latter can be done through a hidden module like:

#[doc(hidden)]
mod __priv {
  pub use bitvec;
  // [...]
}

I'm happy to work on an initial implementation if we're happy with this approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions