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
{{ message }}
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
I may be missing this but, protoc_rust_grpc (and the other crates) does not generate rust module definitions.
Other languages are configurable through protobuf Options and permit a language namespace to be specified (e.g. Java's "com.something" or Golang's "package").
This would be a useful feature for rust too and IIUC should also permit the generation of module defs
As a noob, I'm having to manually enumerate the proto files in protoc_rust_grpc and then repeat this process for a hierarchy of mod.rs files that reflect the generated sources.
Perhaps there's a better way?
The code has sufficient information already:
Either: use the existing outdir, includes and input to determine the module hierarchy
Or: enable protobuf option rust_module = "google::api" to define the hierarchy
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I may be missing this but,
protoc_rust_grpc
(and the other crates) does not generate rust module definitions.Other languages are configurable through protobuf Options and permit a language namespace to be specified (e.g. Java's "com.something" or Golang's "package").
This would be a useful feature for rust too and IIUC should also permit the generation of module defs
E.g.
Needs something of the form:
mod.rs
:As a noob, I'm having to manually enumerate the proto files in
protoc_rust_grpc
and then repeat this process for a hierarchy ofmod.rs
files that reflect the generated sources.Perhaps there's a better way?
The code has sufficient information already:
outdir
,includes
andinput
to determine the module hierarchyoption rust_module = "google::api"
to define the hierarchyThe text was updated successfully, but these errors were encountered: