Open sfali23 opened 1 year ago
I will need to investigate this a little further. What version of rust were you using?
Here is my Cargo.tml
name = "proto-generator"
version = "0.1.0"
edition = "2021"
[dependencies]
prost = "0.11.9"
#prost-types = "0.11.9"
prost-wkt = "0.4.2"
prost-wkt-types = "0.4.2"
serde = "1.0.183"
serde_json = "1.0.104"
chrono = { version = "0.4.26", default-features = false, features = ["clock", "serde"] }
[build-dependencies]
prost-build = "0.11.9"
prost-wkt-build = "0.4.2"
Rust version is1.71.1
.
Thanks in advance.
Hi There,
I am getting a compilation error
there are too many leading 'super' keywords
when building following example:event-types.proto
messages.proto
requests.proto
The generated
my.requests.rs
is:The compilation error is on line
pub foo: ::core::option::Option<super::messages::Foo>
.How can I resolve this error?
Another question is that generated type of
event_type
isi32
, is it possible to have something likepub event_type: ::event_types::EventType
instead?Regards Farhan