fast-nail-55400
09/10/2025, 7:20 PMgen being a keyword in the Rust 2024 edition, however, we should rename the protos::gen module so that we don't need to use raw identifier syntax for every use of gen. Any ideas on what should replace gen ? That module is the root of the generated protobuf code in Rust.fast-nail-55400
09/10/2025, 7:22 PMproto - Clean, short, and clearly indicates protobuf-related code
• pb - Common abbreviation for "protobuf" used widely in the ecosystem
• generated - Explicit about the nature of the code
• codegen - Indicates code generation, commonly used pattern
Other solid options:
• protobufs - More explicit plural form
• schemas - Emphasizes the schema/message definitions
• messages - Focuses on the protobuf messages
• rpc - If these are primarily for RPC services
• api - If they represent API definitions
Considerations:
• proto is probably the most natural choice - it's short, clear, and widely recognized
• pb is very common in protobuf toolchains (you'll see it in many codebases)
• generated is the most explicit but slightly longer
• codegen works well if you have other types of generated code toofast-nail-55400
09/10/2025, 7:22 PMprotos::pb seems decentwide-midnight-78598
09/10/2025, 8:57 PMfast-nail-55400
09/10/2025, 9:13 PMprotos , I'm thinking protos::proto looks odd; protos::pb seems more compact to me.fast-nail-55400
09/10/2025, 9:59 PM