cc-plus-pluscross-platformc-sharpflatbuffersgogrpcjavajavascriptjson-parsermarshallingmmapprotobufpythonrpcrustserializationserialization-librarystarred-google-repostarred-repotypescriptzero-copy
155c55900f
In flatbuffers, build_defs.bzl has been updated to have the bazel rule `flatbuffer_cc_library` defined. Therefore, it should be possible to build another application and using `flatbuffer_cc_library` directly (by `load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")`) However, when I tried to do the above, I saw the following errors in bazel: ``` ERROR: /root/.cache/bazel/_bazel_root/c27e9809996ce9a9c0ed8dd79ef0897b/external/arrow/BUILD.bazel:12:1: in deps attribute of cc_library rule @arrow//:arrow_format: target '@arrow//:runtime_cc' does not exist. Since this rule was created by the macro 'flatbuffer_cc_library', the error might have been caused by the macro implementation in /root/.cache/bazel/_bazel_root/c27e9809996ce9a9c0ed8dd79ef0897b/external/com_github_google_flatbuffers/build_defs.bzl:216:16 ``` The reason for the bazel error was that `//:runtime_cc` and `//:flatc` does not have the repo name prefixed. By prefix `` the above bazel build error could be resolved. This fix should help other programs to use flatbuffers directly through bazel. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> |
||
---|---|---|
.appveyor | ||
.github | ||
.travis | ||
CMake | ||
android | ||
conan | ||
dart | ||
docs | ||
go | ||
grpc | ||
include/flatbuffers | ||
java/com/google/flatbuffers | ||
js | ||
lobster | ||
lua | ||
net/FlatBuffers | ||
php | ||
python | ||
reflection | ||
rust/flatbuffers | ||
samples | ||
src | ||
tests | ||
.clang-format | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
BUILD | ||
CMakeLists.txt | ||
CONTRIBUTING.md | ||
LICENSE.txt | ||
WORKSPACE | ||
appveyor.yml | ||
build_defs.bzl | ||
composer.json | ||
conanfile.py | ||
package.json | ||
pom.xml | ||
readme.md |
readme.md
FlatBuffers
FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.
Go to our landing page to browse our documentation.
Supported operating systems
- Windows
- MacOS X
- Linux
- Android
- And any others with a recent C++ compiler.
Supported programming languages
- C++
- C#
- C
- Dart
- Go
- Java
- JavaScript
- Lobster
- Lua
- PHP
- Python
- Rust
- TypeScript
and more in progress...
Contribution
- FlatBuffers Google Group to discuss FlatBuffers with other developers and users.
- FlatBuffers Issues Tracker to submit an issue.
- stackoverflow.com with
flatbuffers
tag for any questions regarding FlatBuffers.
To contribute to this project, see CONTRIBUTING.
Licensing
Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.