flatbuffers/grpc
Mikhail 2f59a0319b
Update grpc-core version (#8412)
* Update grpc-core version

io.grpc:grpc-core package in version 1.36.0 contains multiple [CVE's](https://mvnrepository.com/artifact/io.grpc/grpc-core/1.36.0).
Bump grpc-core version to latest 1.68.0 version to mitigate potential vulnerabilities.

* Update grpc version to 1.67.1

grpc was mistakenly released to maven under version 1.68.0 whenever a real release was done for version 1.67.1 [1]. The mistake was fixed later.

[1] https://github.com/grpc/grpc-java/releases
2024-10-05 18:24:05 -07:00
..
examples Sets Swift minimum version to 5.8 (#8228) 2024-05-29 13:07:54 -07:00
flatbuffers-java-grpc Update grpc-core version (#8412) 2024-10-05 18:24:05 -07:00
samples/greeter Reverting grpc generated file suffix (#6995) 2021-12-18 18:23:28 -08:00
src/compiler [gRPC] Update the code generator for Python to produce typed handlers (#8326) 2024-06-18 16:02:57 -07:00
tests fix go_test implement error (#7012) 2022-02-03 08:43:28 -08:00
BUILD.bazel [CMake] Renames BUILD files (#6457) 2021-02-11 10:16:57 -08:00
README.md [C++] Use proper gRPC C++ API when using MemoryBuffer Slice (#6756) 2021-07-29 10:41:51 -07:00
boringssl.patch Trying to fix bazel on macOS and Xcode 14.3 (#8304) 2024-05-28 17:29:41 -07:00
build_grpc.sh [C++] Use proper gRPC C++ API when using MemoryBuffer Slice (#6756) 2021-07-29 10:41:51 -07:00
build_grpc_with_cxx14.patch Trying to fix bazel on macOS and Xcode 14.3 (#8304) 2024-05-28 17:29:41 -07:00
pom.xml update Java version to 2.0.3 2021-08-14 09:01:54 -07:00

README.md

GRPC implementation and test

NOTE: files in src/ are shared with the GRPC project, and maintained there (any changes should be submitted to GRPC instead). These files are copied from GRPC, and work with both the Protobuf and FlatBuffers code generator.

tests/ contains a GRPC specific test, you need to have built and installed the GRPC libraries for this to compile. This test will build using the FLATBUFFERS_BUILD_GRPCTEST option to the main FlatBuffers CMake project.

Building Flatbuffers with gRPC

Linux

  1. Download, build and install gRPC. See instructions.
    • Lets say your gRPC clone is at /your/path/to/grpc_repo.
    • Install gRPC in a custom directory by running make install prefix=/your/path/to/grpc_repo/install.
  2. export GRPC_INSTALL_PATH=/your/path/to/grpc_repo/install
  3. export PROTOBUF_DOWNLOAD_PATH=/your/path/to/grpc_repo/third_party/protobuf
  4. mkdir build ; cd build
  5. cmake -DFLATBUFFERS_BUILD_GRPCTEST=ON -DGRPC_INSTALL_PATH=${GRPC_INSTALL_PATH} -DPROTOBUF_DOWNLOAD_PATH=${PROTOBUF_DOWNLOAD_PATH} ..
  6. make

For Bazel users:

$bazel test src/compiler/...

Running FlatBuffer gRPC tests

Linux

  1. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${GRPC_INSTALL_PATH}/lib
  2. make test ARGS=-V

For Bazel users:

$bazel test tests/...