chaokunyang commented on code in PR #3818:
URL: https://github.com/apache/fory/pull/3818#discussion_r3524225786


##########
compiler/README.md:
##########
@@ -448,20 +499,262 @@ export interface Cat {
 }
 ```
 
+## gRPC Service Generation
+
+Pass `--grpc` to generate gRPC service stubs alongside type definitions for 
all selected
+languages that support service generation (Java, Python, Go, Rust, C#, 
JavaScript, Dart,
+Kotlin, and Scala). Stubs use Fory serialization as the on-wire codec.
+
+```bash
+# Generate type definitions and gRPC stubs
+foryc examples/service.fdl --lang java,python,go --grpc --output ./generated
+
+# JavaScript gRPC-Web client (requires --grpc-web, implies JavaScript output)
+foryc examples/service.fdl --javascript_out=./gen/js --grpc-web
+
+# Python async mode (default) or sync mode
+foryc examples/service.fdl --python_out=./gen/python --grpc --grpc-python-mode 
sync
+```
+
+### Generated gRPC Output
+
+For each language the compiler emits one gRPC companion file per schema file.
+The following examples use the schema from `examples/service.fdl`:
+
+```fdl

Review Comment:
   could you use `protobuf` here? fdl don't have syntax highlight



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to