Rust is not supported by the protobuf team. After exploring different options and discussing with the Rust team, I ended up using the `rust-protobuf` library and checking in the resulting code: http://google3/experimental/rust-pony-endpoint/. That directory includes the Rust project that I run to re-generate the protobuf implementation as well as the Rust code that uses it.
I hope this helps. Simon On Sunday, August 8, 2021 at 1:31:44 PM UTC-4 [email protected] wrote: > Hi! > > I am trying to use protobuf in my rust actix server. There is this library > https://github.com/actix/actix-extras/tree/master/actix-protobuf that > seems quite nice, but doesn't do codegen. And I see there is this library > for rust https://github.com/stepancheg/rust-protobuf/. > On the main protobuf page there is no clear support for Rust, so I was > just wondering what's the best practice for using protobuf in rust. Am I > supposed to use codegen? What value does codegen bring? I think if I don't > use codegen, I could do customization for the struct in rust, for example, > impl some trait for it. But with codegen, i would lose that flexibility. Is > that flexibility discouraged? > > Thanks! > Yimeng > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/f89ecd77-9061-4914-8829-3b63fd01869en%40googlegroups.com.
