summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-01-04[packaging] Add rpm spec and other files to support Tizen packagingtizen_9.0_m2_releaseaccepted/tizen/unified/riscv/20240106.074919accepted/tizen/unified/dev/20240620.010701accepted/tizen/unified/20240105.105457accepted/tizen/9.0/unified/20241031.000358tizen_9.0tizensandbox/anyj0527/v23.5.26accepted/tizen_unified_riscvaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unifiedYongjoo Ahn3-0/+118
- Let the flatbuffers and flatbuffers-devel packages built by tizen GBS Change-Id: Ib27a78816d99278c4167f33e532adaa03015cc2c Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
2023-05-26FlatBuffers Version 23.5.26 (#7976)Derek Bailey181-236/+241
2023-05-22 Update java pom.xml file to allow flatbuffers-java maven package to be ↵swimar1-86/+110
compiled under java 8, and pulled in as a dependency to a project using java 8. (#7893) (#7894) Co-authored-by: Derek Bailey <derekbailey@google.com> Co-authored-by: Paulo Pinheiro <paulovictor.pinheiro@gmail.com>
2023-05-17don't emit flatbuffers include in bfbs generated output (#7968)Derek Bailey3-22/+6
2023-05-17switch back to having T explicitly defined in CreateVector (#7967)Derek Bailey1-4/+3
2023-05-17Fix python tests (#7960)Chih-Hsuan Yen25-224/+234
* Don't generate types unless --python-typing specified Fixes https://github.com/google/flatbuffers/issues/7944 * Fix incorrect import statements Fixes https://github.com/google/flatbuffers/issues/7951 * Fix $PYTHONPATH in PythonTest.sh Regressed from https://github.com/google/flatbuffers/pull/7529 * PythonTest: fail if something goes wrong GitHub Actions runs `bash PythonTest.sh`, and thus failures were not visible. * Build flatc for Python tests * Regenerate codes --------- Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-05-17fix(rust): fixed rust namer isses, resolve #7865 and ##7782 (#7964)sssooonnnggg13-1/+1329
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-05-17Switch to using alias instead of a typedef for FlatBufferBuilder (#7966)Derek Bailey1-7/+2
2023-05-16chore: add rust windows test to CI, fix RustTest.bat (#7963)sssooonnnggg2-9/+21
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-05-16README.md: SemVer case typo (#7962)Daniel Frederick Crisman1-1/+1
SemVer (if we are capitalizing it) has a capital V. See the third sub-header at https://semver.org/#semantic-versioning-specification-semver "Semantic Versioning Specification (SemVer)" Update the text in Versioning section
2023-05-15feat: Support union underlying type for TS/JS (#7961)sssooonnnggg6-8/+58
2023-05-14feat(C++): Support underlying_type for union (#7954)sssooonnnggg10-17/+1004
* feat(C++): support underlying type for union * chore: add conform checks for underlying type changes
2023-05-12remove flatbuffers tests from android (#7959)Derek Bailey2-18/+0
2023-05-12switch to interface library for flatsampleDerek Bailey1-7/+7
2023-05-12fix Mac build about gen sources and multiple targetsDerek Bailey1-8/+12
2023-05-12remove and auto-generate arrays_test_generated.hDerek Bailey3-545/+14
2023-05-12remove and auto-generate alignment_test_generated.hDerek Bailey3-500/+6
2023-05-12fix(TS): fixed incorrect function name when importing unionTo functions (#7958)sssooonnnggg1-2/+2
2023-05-11Missing GenTextFile declWouter van Oortmerssen1-0/+2
2023-05-11Rename GenerateTextWouter van Oortmerssen14-61/+50
to make it a compile-time breaking change, to alert any users to the new meaning of the return value
2023-05-11run `scripts/clang-format-all.sh`Derek Bailey21-102/+116
2023-05-11add GetSizePrefixedBufferLength()Derek Bailey1-2/+2
2023-05-11Change SizedPrefixed verifier to be <= provided sizeDerek Bailey1-2/+2
2023-05-11Change SizedPrefixed verifier to be <= provided size (#7957)Derek Bailey3-8/+43
* Change SizedPrefixed verifier to be <= provided size * add GetSizePrefixedBufferLength()
2023-05-11fixed other occurenace of big bufferDerek Bailey1-7/+2
2023-05-11remove large buffer creation in test to speed it upDerek Bailey1-1/+2
2023-05-10Fix //tests/ts:bazel_repository_test (#7952)Philipp Schrader2-1/+2
The test was not actually invoking the bazel that was downloaded with the `http_file` rule. I failed to add `executable = True` to the `http_file` call. This caused the test to ignore that bazel binary and went to the next one on the system. This patch fixes the issue by adding the missing attribute. Also, this patch changes the check in the test to make sure that the downloaded file is indeed executable.
2023-05-10remove unneeed grpc includeDerek Bailey1-1/+0
2023-05-10make loop variable final in dartDerek Bailey1-1/+1
2023-05-10rename __suppress_ubsan to FLATBUFFERS_SUPPRESS_UBSANDerek Bailey3-11/+11
2023-05-10Update README.mdDerek Bailey1-0/+41
Added Quick State to the main readme file
2023-05-09fixed bfbs gen to pass extra options (#7949)Derek Bailey26-303/+570
2023-05-09removed extern code generation declarations preferring direct includes (#7948)Derek Bailey27-1081/+117
* removed extern code generation definitions, preferring direct includes * add static to functions * remove idl_gen_lua
2023-05-09fix --conform raising `No generators registered` errorDerek Bailey1-1/+1
2023-05-09fix out-of-source builds with cmake (#7946)Derek Bailey4-9/+28
2023-05-09Upgrade package.json dependencies (#7933)Björn Harrtell7-156/+321
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-05-09FlatBuffers Version 23.5.9 (#7945)Derek Bailey185-241/+245
2023-05-09FlatBuffers 64 for C++ (#7935)Derek Bailey49-525/+3270
* First working hack of adding 64-bit. Don't judge :) * Made vector_downward work on 64 bit types * vector_downward uses size_t, added offset64 to reflection * cleaned up adding offset64 in parser * Add C++ testing skeleton for 64-bit * working test for CreateVector64 * working >2 GiB buffers * support for large strings * simplified CreateString<> to just provide the offset type * generalize CreateVector template * update test_64.afb due to upstream format change * Added Vector64 type, which is just an alias for vector ATM * Switch to Offset64 for Vector64 * Update for reflection bfbs output change * Starting to add support for vector64 type in C++ * made a generic CreateVector that can handle different offsets and vector types * Support for 32-vector with 64-addressing * Vector64 basic builder + tests working * basic support for json vector64 support * renamed fields in test_64bit.fbs to better reflect their use * working C++ vector64 builder * Apply --annotate-sparse-vector to 64-bit tests * Enable Vector64 for --annotate-sparse-vectors * Merged from upstream * Add `near_string` field for testing 32-bit offsets alongside * keep track of where the 32-bit and 64-bit regions are for flatbufferbuilder * move template<> outside class body for GCC * update run.sh to build and run tests * basic assertion for adding 64-bit offset at the wrong time * started to separate `FlatBufferBuilder` into two classes, 1 64-bit aware, the other not * add test for nested flatbuffer vector64, fix bug in alignment of big vectors * fixed CreateDirect method by iterating by Offset64 first * internal refactoring of flatbufferbuilder * block not supported languages in the parser from using 64-bit * evolution tests for adding a vector64 field * conformity tests for adding/removing offset64 attributes * ensure test is for a big buffer * add parser error tests for `offset64` and `vector64` attributes * add missing static that GCC only complains about * remove stdint-uintn.h header that gets automatically added * move 64-bit CalculateOffset internal * fixed return size of EndVector * various fixes on windows * add SizeT to vector_downward * minimze range of size changes in vector and builder * reworked how tracking if 64-offsets are added * Add ReturnT to EndVector * small cleanups * remove need for second Array definition * combine IndirectHelpers into one definition * started support for vector of struct * Support for 32/64-vectors of structs + Offset64 * small cleanups * add verification for vector64 * add sized prefix for 64-bit buffers * add fuzzer for 64-bit * add example of adding many vectors using a wrapper table * run the new -bfbs-gen-embed logic on the 64-bit tests * remove run.sh and fix cmakelist issue * fixed bazel rules * fixed some PR comments * add 64-bit tests to cmakelist
2023-05-09FlatBuffers Version 23.5.8 (#7943)RishabhDeep Singh180-259/+302
2023-05-08Add #!/usr/bin/bash to release.sh (#7942)RishabhDeep Singh1-0/+1
2023-05-08add key_field to compiled testsDerek Bailey2-4/+5
2023-05-05add rest of golden language directoriesDerek Bailey1-3/+3
2023-05-05add rest of golden language directoriesDerek Bailey31-2/+1630
2023-05-05Add goldens directoryDerek Bailey9-0/+360
2023-05-05Rework cmake flatc codegeneration (#7938)Derek Bailey15-306/+222
* start fixing the code generation steps * reworked flatc generation in cmake
2023-05-04remove defining generated files in test srcsDerek Bailey1-23/+0
2023-05-04Add binary schema reflection (#7932)Derek Bailey6-11/+83
* Add binary schema reflection * remove not-used parameter * move logic from object API to base API * forward declare * remove duplicate code gen that was stompping on the edits * reduce to just typedef generation * fixed bazel rules to not stomp * more bazel fixes to support additional generated files
2023-05-03Fix missing return error string for GenerateTextWouter van Oortmerssen1-1/+1
2023-05-03GenerateText gives text error on failureWouter van Oortmerssen14-112/+122
2023-05-03Migrate from rules_nodejs to rules_js/rules_ts (take 2) (#7928)Philipp Schrader35-1214/+1700
* Migrate from rules_nodejs to rules_js/rules_ts (take 2) This is the second version of patch #7923. The first version got reverted because bazel query was failing: $ bazel --nosystem_rc --nohome_rc query tests(set('//...')) except tests(attr("tags", "manual", set('//...'))) ERROR: Traceback (most recent call last): File "/workdir/tests/ts/bazel_repository_test_dir/BUILD", line 6, column 22, in <toplevel> npm_link_all_packages(name = "node_modules") File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/external/npm/defs.bzl", line 188, column 13, in npm_link_all_packages fail(msg) Error in fail: The npm_link_all_packages() macro loaded from @npm//:defs.bzl and called in bazel package 'tests/ts/bazel_repository_test_dir' may only be called in bazel packages that correspond to the pnpm root package '' and pnpm workspace projects '' This was happening because the `.bazelrc` file only added `--deleted_packages` to the `build` command. We also need it for the `query` command. This second version of the patch fixes that. Original commit message: This patch migrates the current use of rules_nodejs to the new rules_js. rules_js is the intended replacement of rules_nodejs as per this note: https://github.com/aspect-build/rules_js#relationship-to-rules_nodejs > rules_js is an alternative to the build_bazel_rules_nodejs Bazel module > and accompanying npm packages hosted in > https://github.com/bazelbuild/rules_nodejs, which is now > unmaintained. All users are recommended to use rules_js instead. There are a few notable changes in this patch: 1. The `flatbuffer_ts_library` macro no longer accepts a `package_name` attribute. This is because rules_js appears to manage the import naming of dependencies via top-level `npm_link_package` targets. Users will have to migrate. 2. I added a few more arguments to `flatbuffer_library_public()`. These helped with exposing esbuild to `ts/compile_flat_file.sh`. 3. I pinned the version of `typescript` in `package.json` so that rules_ts can download the exact same version. rules_ts doesn't know what to do if the version isn't exact. 4. Since rules_js uses the pnpm locking mechanism, we now have a `pnpm-lock.yaml` file instead of a yarn lock file. 4. I added bazel targets for a few of the existing tests in `tests/ts`. They can be run with `bazel test //test/ts:all`. Since there is no flexbuffers bazel target, I did not add a bazel target for the corresponding test. 5. I added a separate workspace in `tests/ts/bazel_repository_test_dir/` to validate that the flatbuffers code can be imported as an external repository. You can run the test with `bazel test //test/ts:bazel_repository_test`. For this to work, I needed to expose a non-trivial chunk of the flatbuffers code to the test. I achieved this through some recursive `distribution` filegroups. This is inspired by rules_python's workspace tests. I did not do anything special to validate that the `gen_reflections` parameter works the same. This patch doesn't change anything about the TypeScript generation. As a side note: I am not an expert with rules_js. This patch is my attempt based on my limited understanding of the rule set. Fixes #7817 * Fix the query --------- Co-authored-by: Derek Bailey <derekbailey@google.com>