Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(generator/rust): support wkt bootstrapping #758

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Jan 21, 2025

We will need to generate some types in the gcp-sdk-wkt crate. The
generator emits code explicitly referencing the crate as an extern
crate named wkt::. We need a bit of custom code to make that work from
within the wkt crate. This change seemed easier than giving wkt a
symbolic name in the template data and referencing that name from the
mustache templates.

Part of the work for #37

@coryan coryan marked this pull request as ready for review January 21, 2025 15:10
@coryan coryan requested a review from codyoss January 21, 2025 15:10
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.19%. Comparing base (6490cec) to head (be77cdd).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #758   +/-   ##
=======================================
  Coverage   95.19%   95.19%           
=======================================
  Files          38       38           
  Lines        1416     1416           
=======================================
  Hits         1348     1348           
  Misses         68       68           

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

@coryan coryan force-pushed the feat-generator-rust-bootstrap-wkt-support branch from bea63c2 to 07359ca Compare January 21, 2025 15:55
@coryan coryan enabled auto-merge (squash) January 21, 2025 15:55
We will need to generate some types in the `gcp-sdk-wkt` crate. The
generator emits code explicitly referencing the crate as an extern
crate named `wkt::`. We need a bit of custom code to make that work from
within the `wkt` crate. This change seemed easier than giving `wkt` a
symbolic name in the template data and referencing that name from the
mustache templates.
@coryan coryan force-pushed the feat-generator-rust-bootstrap-wkt-support branch from 07359ca to be77cdd Compare January 21, 2025 15:57
@coryan coryan merged commit 78f281a into googleapis:main Jan 21, 2025
14 checks passed
@coryan coryan deleted the feat-generator-rust-bootstrap-wkt-support branch January 21, 2025 16:04
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