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!

Copy link
Member

@tegimeki tegimeki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a cleaner API 👍

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.
@nyurik nyurik merged commit bc949e3 into oxibus:main Jan 25, 2026
7 checks passed
@nyurik nyurik deleted the usability branch January 25, 2026 16:25
@nyurik nyurik mentioned this pull request Jan 23, 2026
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.

2 participants