FlatBuffers: Memory Efficient Serialization Library
Go to file
Yong Tang 155c55900f Add repository name to build_defs.bzl (#5104)
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>
2019-01-07 09:55:55 -08:00
.appveyor CI check generate code (#4998) 2018-10-22 15:41:12 -07:00
.github Added PULL_REQUEST_TEMPLATE.md 2017-02-08 10:15:26 -08:00
.travis CI: Dockerized language port tests (#5066) 2018-11-29 22:03:06 -08:00
CMake generated cmake command for flatc generation should depend on source file (#5087) 2018-12-13 11:56:51 -08:00
android Disable armeabi builds for Android and re-enable CI builds. (#4970) 2018-10-08 12:43:57 -07:00
conan Update Conan version Automatically (#5027) 2018-11-12 08:49:42 -08:00
dart Disallowed 0 byte structs. 2018-10-29 17:40:19 -07:00
docs Make the Parser independent from the global C-locale (#5028) 2018-11-16 09:24:06 -08:00
go Merge pull request #4820 from nairb774/master 2018-07-26 15:35:45 -07:00
grpc Fix Java generator bug that ignores bidi streaming attribute (#5063) 2018-11-29 10:33:17 -08:00
include/flatbuffers Fix 'no_sanitize_undefined' attribute for GCC4.8 (#5090) 2018-12-17 11:50:31 -08:00
java/com/google/flatbuffers Java: Pulling in protobuf's faster UTF-8 encoder. (#5035) 2018-12-17 13:53:49 -08:00
js Adding JS function to get the File Identifier (#4715) 2018-04-23 12:54:20 -07:00
lobster FlatBuffers implementation for the Lobster programming language 2018-07-29 13:23:00 -07:00
lua Wrong int32 min-max range definition on numTypes.lua (#5031) 2018-11-12 09:40:24 -08:00
net/FlatBuffers [net] Fix issue #5036 when write a double value into bytebuffer at big endian machine with unsafe mode. (#5076) 2018-12-03 09:50:26 -08:00
php Performance improvement to generated+supporting PHP (#5080) 2018-12-20 16:10:20 -08:00
python [Python] Fast serialization of numpy vectors (#4829) 2018-10-15 17:07:08 -07:00
reflection CI check generate code (#4998) 2018-10-22 15:41:12 -07:00
rust/flatbuffers Fix create_vector_of_strings to use the stack, and test it. (#5074) 2018-11-29 11:47:28 -08:00
samples Enable flatbuffer to initialize Parser from bfbs (#4283) (#5077) 2018-12-13 11:59:27 -08:00
src [Go] Namespaced imports fix (#5097) 2018-12-27 20:57:19 -05:00
tests [Go] Namespaced imports fix (#5097) 2018-12-27 20:57:19 -05:00
.clang-format Made all C++ files clang-formatted. 2017-12-21 11:45:02 -08:00
.editorconfig CI check generate code (#4998) 2018-10-22 15:41:12 -07:00
.gitattributes Text files should not have executable bit set (#4480) 2017-11-06 10:20:22 -08:00
.gitignore Enable flatbuffer to initialize Parser from bfbs (#4283) (#5077) 2018-12-13 11:59:27 -08:00
.travis.yml CI: Dockerized language port tests (#5066) 2018-11-29 22:03:06 -08:00
BUILD Add flatbuffer_cc library support (#5061) 2018-12-10 12:23:40 -08:00
CMakeLists.txt Added -Werror=implicit-fallthrough=2 to GCC 7 build. 2018-12-26 16:03:07 -08:00
CONTRIBUTING.md Fixed link to Google C++ Style Guide. 2017-02-08 16:37:25 -08:00
LICENSE.txt Fix Visual Studio 2012 build warning. 2015-09-11 14:35:34 -07:00
WORKSPACE Add flatbuffer_cc library support (#5061) 2018-12-10 12:23:40 -08:00
appveyor.yml CI check generate code (#4998) 2018-10-22 15:41:12 -07:00
build_defs.bzl Add repository name to build_defs.bzl (#5104) 2019-01-07 09:55:55 -08:00
composer.json (PHP) add experimental support for PHP language. 2015-11-18 00:26:39 +09:00
conanfile.py Update Conan version Automatically (#5027) 2018-11-12 08:49:42 -08:00
package.json Convenient createX methods for TS (#5044) 2018-11-16 09:17:54 -08:00
pom.xml Java: Pulling in protobuf's faster UTF-8 encoder. (#5035) 2018-12-17 13:53:49 -08:00
readme.md Updated readme.md 2018-09-21 10:42:00 -07:00

readme.md

logo FlatBuffers

Join the chat at https://gitter.im/google/flatbuffers Build Status Build status

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

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.