mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 05:22:40 +00:00
gRPC callbackService support added (#8666)
* grpc callbackService support added Signed-off-by: shankeleven <shashanksati11@gmail.com> * tests: regenerate C++ gRPC golden with --grpc-callback-api (CallbackService & async_ reactor APIs); update formatting and method placement --------- Signed-off-by: shankeleven <shashanksati11@gmail.com> Co-authored-by: Wouter van Oortmerssen <aardappel@gmail.com>
This commit is contained in:
@@ -154,13 +154,26 @@ flatc(
|
||||
include="include_test",
|
||||
)
|
||||
|
||||
"""NOTE: The C++ gRPC golden is generated with the callback API enabled so that
|
||||
the repository goldens exercise the callback client & server code paths.
|
||||
If you need the legacy (non-callback) variant for comparison, invoke flatc
|
||||
manually without --grpc-callback-api; we intentionally do not keep both to
|
||||
minimize golden churn."""
|
||||
flatc(
|
||||
NO_INCL_OPTS + CPP_OPTS + ["--grpc"],
|
||||
NO_INCL_OPTS + CPP_OPTS + ["--grpc", "--grpc-callback-api"],
|
||||
schema="monster_test.fbs",
|
||||
include="include_test",
|
||||
data="monsterdata_test.json",
|
||||
)
|
||||
|
||||
# Also generate a suffix variant exercising the callback API to keep prior
|
||||
# *_generated naming convention in sync with new callback additions.
|
||||
flatc(
|
||||
NO_INCL_OPTS + CPP_OPTS + ["--grpc", "--grpc-callback-api", "--filename-suffix", "_generated"],
|
||||
schema="monster_test.fbs",
|
||||
include="include_test",
|
||||
)
|
||||
|
||||
flatc(
|
||||
RUST_OPTS,
|
||||
schema="monster_test.fbs",
|
||||
|
||||
Reference in New Issue
Block a user