flatbuffers/grpc
mustiikhalil f63c130c28
Improves documentation, and adding DocC (#6784)
Finished documenting flatbuffersbuilder

Replaces swift 5.5 with 5.2 packages

Starts building the tutorial for xcode 13

Finishes building the tutorial for xcode 13

Removes docc files from old swift versions

Updates swift style guide
2021-09-27 20:59:19 +02:00
..
examples Improves documentation, and adding DocC (#6784) 2021-09-27 20:59:19 +02:00
flatbuffers-java-grpc update Java version to 2.0.3 2021-08-14 09:01:54 -07:00
samples/greeter [grpc] Support latest version of grpc PoC (#6338) 2021-03-25 12:12:35 -07:00
src/compiler [C++/grpc] added hiding of unused variables in the generated code (#6677) 2021-06-06 17:40:56 +07:00
tests update Java version to 2.0.3 2021-08-14 09:01:54 -07: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 [grpc] Support latest version of grpc PoC (#6338) 2021-03-25 12:12:35 -07:00
build_grpc.sh [C++] Use proper gRPC C++ API when using MemoryBuffer Slice (#6756) 2021-07-29 10:41:51 -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/...