You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, since it doesn't generate #[derive(Default, Copy, Clone)], I can't use this enum type directly in my multi-threaded code without running into "Id352bmsEnergyStatusBmsMultiplexorM0: Clone" is not satisfied.
For other types, directly implementing a message, however these traits are generated.
I can manually add "Copy, Clone" traits and make the generated code works, but it breaks once I make a change to my DBC file.
Is there a good reason for this behaviour and some way to get around it, or could it be a new feature?
The text was updated successfully, but these errors were encountered:
Given a multiplexor structure such as
dbc-codegen properly generates:
However, since it doesn't generate #[derive(Default, Copy, Clone)], I can't use this enum type directly in my multi-threaded code without running into "Id352bmsEnergyStatusBmsMultiplexorM0: Clone" is not satisfied.
For other types, directly implementing a message, however these traits are generated.
I can manually add "Copy, Clone" traits and make the generated code works, but it breaks once I make a change to my DBC file.
Is there a good reason for this behaviour and some way to get around it, or could it be a new feature?
The text was updated successfully, but these errors were encountered: