apcode / bazel-grpc

Bazel workspace for GRPC and protobuf code
MIT License
3 stars 1 forks source link

FlatBuffers support #1

Open toulouse opened 6 years ago

toulouse commented 6 years ago

First off, this is awesome and almost exactly what I was looking for. Thank you.

I've been pulling my hair out trying to build gRPC and some other libs with CMake, and the slowness of the build and the nightmare got to be too much, so I jumped over to try bazel. I was hoping to use FlatBuffers, as they are fairly close to protobufs, minus a marshalling step.

FlatBuffers themselves support gRPC: https://grpc.io/blog/flatbuffers - and have a compile time dependency on gRPC if flatc is invoked with --grpc.

This is a -total- wishlist item, especially if it's a pain in the ass to implement, but adding in FlatBuffers support would be amazing!

apcode commented 6 years ago

Thanks, I'm glad you like it. I'll have a look into it. It sounds like a great idea.

Initial thoughts are it will likely be C++ only for now, as grpc support in flatbuffers looks like that. I'll have to try and get bazel build rules working for flatbuffers.

Knowing that some Google teams are using flatbuffers instead of protobuf means there are likely working flat buffer rules around. So it should be possible.

Stay tuned.