From 09dab7b45c56c2d17eac493203adc8caaa0df2cc Mon Sep 17 00:00:00 2001 From: iceboy Date: Tue, 5 Feb 2019 13:11:29 -0800 Subject: [PATCH] Also refine docs --- WORKSPACE | 8 -------- build_defs.bzl | 2 +- docs/source/CppUsage.md | 3 +-- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 148797e63..16c56dbe1 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,11 +1,3 @@ workspace(name = "com_github_google_flatbuffers") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -http_archive( - name = "io_bazel_rules_go", - urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.13.0/rules_go-0.13.0.tar.gz"], - sha256 = "ba79c532ac400cefd1859cbc8a9829346aa69e3b99482cd5a54432092cbc3933", -) -load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") -go_rules_dependencies() -go_register_toolchains() diff --git a/build_defs.bzl b/build_defs.bzl index c55ab5180..f514bc11c 100644 --- a/build_defs.bzl +++ b/build_defs.bzl @@ -10,7 +10,7 @@ DEFAULT_INCLUDE_PATHS = [ ] DEFAULT_FLATC_ARGS = [ - "--gen-object-api", + #"--gen-object-api", "--gen-compare", "--no-includes", "--gen-mutable", diff --git a/docs/source/CppUsage.md b/docs/source/CppUsage.md index a72b96a59..6783ab444 100644 --- a/docs/source/CppUsage.md +++ b/docs/source/CppUsage.md @@ -91,8 +91,7 @@ convenient accessors for all fields, e.g. `hp()`, `mana()`, etc: The following attributes are supported: - `native_shared` (on a field): For string fields, this enables the usage of - CreateSharedString() instead of CreateString() for generated - CreateXxxDirect(), and Pack() in object-based API if enabled. + string pooling (i.e. CreateSharedString) as default serialization behavior. ## Object based API. {#flatbuffers_cpp_object_based_api}