Skip to content

Conversation

@nyurik
Copy link
Member

@nyurik nyurik commented Jan 22, 2026

Make code generator easier to use with simpler functions:

  • Config::write_to_file(path)
  • Config::write(impl Write)
  • Config::generate() -> String

The original codegen is now private. This is a breaking change, but considering a large number of planned modifications to the generated code, this seems like a minor thing.

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

❌ Patch coverage is 68.75000% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
dbc-codegen-cli/src/main.rs 0.00% 4 Missing ⚠️
src/lib.rs 80.00% 0 Missing and 4 partials ⚠️
testing/can-embedded/build.rs 75.00% 0 Missing and 1 partial ⚠️
testing/can-messages/build.rs 75.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Make code generator easier to use with simpler functions:

* `Config::write_to_file(path)`
* `Config::write(impl Write)`
* `Config::generate() -> String`

The original `codegen` is now private. This is a breaking change, but considering a large number of planned modifications to the generated code, this seems like a minor thing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant