Skip to content

refactor(librarian/rust): migrate generator to use ModelConfig#3946

Open
jameslynnwu wants to merge 2 commits intomainfrom
model-config
Open

refactor(librarian/rust): migrate generator to use ModelConfig#3946
jameslynnwu wants to merge 2 commits intomainfrom
model-config

Conversation

@jameslynnwu
Copy link
Contributor

This commit updates the rust generators to use ModelConfig. Will migrate rust veneer generation afterwards

Part of #3662

…elConfig

This commit updates the rust generators to use ModelConfig. This resolves an issue where generate.go had an implicit dependency on parser configuration struct.
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the Rust generator to use ModelConfig, which is a good step towards simplifying configuration handling. The changes are mostly correct and consistent. I've identified a few areas for improvement, including a redundant function call, some inefficient code patterns that can be optimized, and a test case name that has become misleading.

@codecov
Copy link

codecov bot commented Feb 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.35%. Comparing base (4e2fdfc) to head (1403d99).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3946   +/-   ##
=======================================
  Coverage   83.35%   83.35%           
=======================================
  Files          69       69           
  Lines        6188     6188           
=======================================
  Hits         5158     5158           
  Misses        671      671           
  Partials      359      359           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jameslynnwu jameslynnwu marked this pull request as ready for review February 7, 2026 02:21
@jameslynnwu jameslynnwu requested review from a team as code owners February 7, 2026 02:21
@jameslynnwu jameslynnwu marked this pull request as draft February 7, 2026 02:51
@jameslynnwu jameslynnwu marked this pull request as ready for review February 7, 2026 02:55
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