yash-agarwa-l opened a new pull request, #3723: URL: https://github.com/apache/fory/pull/3723
## Why? Dart users need gRPC support from FDL/proto/fbs schemas ## What does this PR do? Adds DartServiceGeneratorMixin so foryc --grpc --dart_out=… emits a <package>/<stem>_grpc.dart next to the messages file. Includes: - <Service>Client over package:grpc's Client with one unary method per RPC via $createUnaryCall. - abstract <Service>ServiceBase over Service with $addMethod registrations and a _Pre shim per method. - Top-level _serialize / _deserialize helpers routing through the existing ForyRegistration.getFory(). - Works from FDL, Protobuf, and FlatBuffers IDL service definitions. - Hard error on streaming RPCs (until they're implemented). - Class- and method-name collision detection. - Opt-in dart analyze + dart format smoke test on the emitted file. ## Related issues Part of #3266 ## AI Contribution Checklist <!-- Full requirements and disclosure template: https://github.com/apache/fory/blob/main/AI_POLICY.md#9-contributor-checklist-for-ai-assisted-prs --> - [ ] Substantial AI assistance was used in this PR: `yes` / `no` - [ ] If `yes`, I included a completed [AI Contribution Checklist](https://github.com/apache/fory/blob/main/AI_POLICY.md#9-contributor-checklist-for-ai-assisted-prs) in this PR description and the required `AI Usage Disclosure`. - [ ] If `yes`, my PR description includes the required `ai_review` summary and screenshot evidence of the final clean AI review results from both fresh reviewers on the current PR diff or current HEAD after the latest code changes. <!-- If substantial AI assistance = `yes`, paste the completed checklist and disclosure block here, including the final ai_review summary and screenshot evidence from both fresh reviewers on the current PR diff or current HEAD after the latest code changes. --> ## Does this PR introduce any user-facing change? <!-- If any user-facing interface changes, please [open an issue](https://github.com/apache/fory/issues/new/choose) describing the need to do so and update the document if necessary. Delete section if not applicable. --> - [x] Does this PR introduce any public API change? - [ ] Does this PR introduce any binary protocol compatibility change? - New _grpc.dart companion when --grpc --dart_out is used on a schema with services. ## Benchmark -- 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]
