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

Must import wkt crate if any message is present #846

Closed
Tracked by #825
coryan opened this issue Jan 25, 2025 · 0 comments · Fixed by #847
Closed
Tracked by #825

Must import wkt crate if any message is present #846

coryan opened this issue Jan 25, 2025 · 0 comments · Fixed by #847
Assignees
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. sidekick Issues related to the code generator type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. type: process A process-related concern. May include testing, release, or the like.

Comments

@coryan
Copy link
Contributor

coryan commented Jan 25, 2025

We need to import the wkt crate to define the wkt::message::Message trait. Otherwise we get errors:

error[E0433]: failed to resolve: use of undeclared crate or module `wkt`
  --> src/generated/cloud/language/v2/src/model.rs:85:6
   |
85 | impl wkt::message::Message for Document {
   |      ^^^ use of undeclared crate or module `wkt`

Note that one of the golden files already has this problem. It uses the crate here:

But it is missing here:

#![no_implicit_prelude]
extern crate std;

@coryan coryan added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. type: process A process-related concern. May include testing, release, or the like. priority: p3 Desirable enhancement or fix. May not be included in next release. sidekick Issues related to the code generator labels Jan 25, 2025
@coryan coryan self-assigned this Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. sidekick Issues related to the code generator type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant