Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] an option for the file name to be only the last nested module #7

Open
jaskij opened this issue May 20, 2022 · 0 comments
Open

Comments

@jaskij
Copy link

jaskij commented May 20, 2022

The easiest path to have my Rust modules mirror Protobuf packages is to have a directory structure like foo/bar/v1.rs, especially if I want to other files in the same modules (say, foo::bar::random for a random generation module).

To that end, it would make a lot of sense for me to have an option (for both protoc-gen-prost and protoc-gen-prost-serde) to only use the last package name in the generate Rust file name (essentially the basename of the proto file). This would probably mean that protoc-gen-prost needs to create an appropriate directory tree too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant