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

just gen cpp async or sync SourceCode [code_generator] [diy_code_generator] #16889

Open
stan1334 opened this issue May 20, 2024 · 0 comments
Open
Labels
untriaged auto added to all issues by default when created.

Comments

@stan1334
Copy link

stan1334 commented May 20, 2024

What language does this apply to?
If it's a proto syntax change, is it for proto2 or proto3?
If it's about generated code change, what programming language?

Describe the problem you are trying to solve.
i cannot find cmd params 2 set just code sync or async code

Describe the solution you'd like

protoc --grpc_out=./ --plugin=protoc-gen-grpc="/C:/Program Files/grpc/bin/grpc_cpp_plugin.exe sync" helloworld.proto
protoc --grpc_out=./ --plugin=protoc-gen-grpc="/C:/Program Files/grpc/bin/grpc_cpp_plugin.exe" --grpc_out=async helloworld.proto

Describe alternatives you've considered
add MYCppGrpcGenerator just like CppGrpcGenerator class.

Additional context
Add any other context or screenshots about the feature request here.

Administrator@CHINAMI-GJCV7IR MINGW64 /d/code/Tools/grpc/examples/protos (master)
$ protoc --plugin=protoc-gen-grpc="/C:/Program Files/grpc/bin/grpc_cpp_plugin.exe" --grpc_out=./ --cpp_out=./ --grpc_opt=generate_async=true helloworld.proto --grpc_out: helloworld.proto: Unknown parameter: generate_async=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged auto added to all issues by default when created.
Projects
None yet
Development

No branches or pull requests

1 participant