You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the example project.
It is working!!!
But using it in real project with latest rusttc 1.53.0 (53cb7b09b 2021-06-17 makes a strangle issue:
syntax = "proto3";
package main_data;
import "rust.proto";
message Data {
// generates the Uuid type instead of the string type
string id = 1 [(rust.codegen).type = UUID];
}
Generates code:
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Data {
/// generates the Uuid type instead of the string type
#[prost(uuid, tag="1")]
pub id: ::uuid::Uuid,
}
But then follows a build error:
error: proc-macro derive panicked
#[derive(Clone, PartialEq, ::prost::Message)]
| ^^^^^^^^^^^^^^^^
|
= help: message: called `Result::unwrap()` on an `Err` value: invalid message field Data.id
Caused by:
no type attribute
Could you check what version of prost-build is used in the build.rs? And does the example compile for you? To me it seems like the correct prost-build handled the proto, but regular prost is used in the derive.
Thank you for the example project.
It is working!!!
But using it in real project with latest rusttc 1.53.0 (53cb7b09b 2021-06-17 makes a strangle issue:
Generates code:
But then follows a build error:
Now I add to project as in example :
May be I should use something like:
What do you think about this issue?
Any ideas?
The text was updated successfully, but these errors were encountered: