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

Enable generating rustdoc comments from proto comments? #705

Open
antonio-dropulic opened this issue Jan 16, 2024 · 0 comments
Open

Enable generating rustdoc comments from proto comments? #705

antonio-dropulic opened this issue Jan 16, 2024 · 0 comments

Comments

@antonio-dropulic
Copy link

Is it possible to enable generating rustdoc comments from proto comments? (Using // in .proto files)

I use protobuf codegen in this way:

protobuf_codegen::Codegen::new()
        .protoc()
        .customize(Customize::default().gen_mod_rs(false))
        .out_dir(outdir())
        .include("src/proto")
        .inputs(&paths)
        .run()
        .expect("Running protoc failed");

My generated code does not contain the comments in the proto files. It only contains comments like this:
// @@protoc_insertion_point(...)

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