summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-05-10More missing version changesHEADv2.0.0masterWouter van Oortmerssen5-13/+13
2021-05-10Dart generated code updateWouter van Oortmerssen1-2/+95
Change-Id: I317d731d17d733088cad608364b614bff8151c36
2021-05-10Swift/Kotlin generated code version updatesWouter van Oortmerssen11-30/+30
Change-Id: I035163cb5edd087a190bb518e686c79887241383
2021-05-10C++/Rust version changesWouter van Oortmerssen6-10/+10
2021-05-10C#/Java generated code version updatesWouter van Oortmerssen40-40/+40
2021-05-10Updated main version numbers to 2.0Wouter van Oortmerssen18-21/+21
2021-05-10[Go] Add missing namespace when using Object API (#6633)mogemimi1-1/+3
2021-05-10Fix reverse iterators for Vector and Array (#6626)Vladimir Glavnyy2-8/+84
This commit fixes two serious issues connected with reverse iterators: 1. Vector's rbegin/rend was incompatible with std::reverse_iterator::base(); 2. Array's rend() was incorrect, it based on end() instead of begin().
2021-05-07[Lua] manipulate byte array as string (#6624)罗泽轩5-0/+84
* [Lua] manipulate byte array as string Sometimes it would be more effective than reading byte by byte * change according to the review * update
2021-05-06[C++] Fix union copy constructor to work with nested structs (#6552) (#6607)Piotr Dziwiński1-1/+2
2021-05-06Updates swift generated monster sample file (#6616)mustiikhalil5-22/+28
Updates swift generated monster sample file Adds frozen attribute
2021-05-05[Lua] Avoid infinite loop when creating empty string (#6614)罗泽轩2-1/+20
* [Lua] Avoid infinite loop when creating empty string * [Lua] Check empty string output
2021-05-05Added support for Lua 5.1, 5.2 and 5.4 (#6606)Derek Bailey4-14/+38
This adds basic support for different Lua versions. For Lua 5.2 and Lua 5.3, both the Bit32 and Compat53 Lua modules must be installed for it to work. You can typically get these on Linux using apt install lua-compat53 lua-bit32 For Lua 5.4, it should work as is, as it is a clean superset of Lua 5.3, which is what the original Lua Flatbuffers supported.
2021-05-03[TS] Remove wrong and obsolete NS prefix use (#6604)Björn Harrtell8-3/+391
2021-05-03Fixed LuaJIT when not compiled with COMPAT mode (#6605)Derek Bailey4-15/+29
LuaJIT as installed by apt doesn't include the COMPAT mode for using Lua5.2 features. So this change just makes the flatbuffer code use a common implementation.
2021-05-03removed unneeded type prefixing (#6601)Kamil Rojewski2-21/+5
2021-05-02Bump Rust to 0.9.0 (#6610)Casper1-1/+1
Co-authored-by: Casper Neo <cneo@google.com>
2021-04-30[Lua] Add LuaJIT support (#6584)罗泽轩9-26/+253
* [Lua] Add LuaJIT support Here is the output of LuaTest.sh: Run with LuaJIT: built 100 512-byte flatbuffers in 0.16sec: 0.63/msec, 0.31MB/sec built 1000 512-byte flatbuffers in 0.08sec: 12.06/msec, 5.89MB/sec built 10000 512-byte flatbuffers in 0.80sec: 12.44/msec, 6.07MB/sec built 10000 512-byte flatbuffers in 0.33sec: 30.58/msec, 14.93MB/sec traversed 100 592-byte flatbuffers in 0.04sec: 2.51/msec, 1.42MB/sec traversed 1000 592-byte flatbuffers in 0.03sec: 31.52/msec, 17.79MB/sec traversed 10000 592-byte flatbuffers in 0.21sec: 48.77/msec, 27.53MB/sec Run with Lua 5.3: built 100 512-byte flatbuffers in 0.02sec: 5.44/msec, 2.66MB/sec built 1000 512-byte flatbuffers in 0.17sec: 5.74/msec, 2.80MB/sec built 10000 512-byte flatbuffers in 1.75sec: 5.72/msec, 2.79MB/sec built 10000 512-byte flatbuffers in 1.38sec: 7.26/msec, 3.55MB/sec traversed 100 592-byte flatbuffers in 0.00sec: 27.64/msec, 15.60MB/sec traversed 1000 592-byte flatbuffers in 0.03sec: 30.46/msec, 17.20MB/sec traversed 10000 592-byte flatbuffers in 0.34sec: 29.62/msec, 16.72MB/sec * [Lua] Better usage description * update according to the review
2021-04-29Introduce new_from_vec in Rust (also fix formatting) (#6599)Casper3-15/+30
* Introduce new_from_vec in Rust (also fix formatting) Also, rename `new_with_capacity` to `with_capacity` to match how `Vec` does it. * bump rust version * mut_finished_buffer Co-authored-by: Casper Neo <cneo@google.com>
2021-04-29fix typo in CppUsage.md (#6595)shiyuge1-1/+1
Thanks!
2021-04-27[Lua] GetRootAs can accept strings. Made Luatest Benchmarks optional (#6593)Derek Bailey13-0/+71
2021-04-27Add advance feature indicators to reflection (#6546)Casper5-15/+88
* Add advance feature indicators to reflection * deserialize too * model advanced features as bitflags * use uint64_t instead of AdvancedFeatures * git clang format * initialize advanced_features_ * remove whitespace Co-authored-by: Casper Neo <cneo@google.com>
2021-04-26Rust Remove SafeSliceAccess for Arrays, and fix miri. (#6592)Casper5-21/+17
* Fix Miri flag passing and bump Rust version. * Fix Miri problems from Arrays PR. SafeSliceAccess was removed for Arrays. It's kind of unsound. It has two properties: 1. EndianSafe 2. Alignment 1 We only need 1. in create_vector_direct to memcpy data. We both 1. and 2. for accessing things with slices as buffers are built on &[u8] which is unaligned. Conditional compilation implements SafeSliceAccess for >1byte scalars (like f32) on LittleEndian machines which is wrong since they don't satisfy 2. This UB is still accessible for Vectors (though not exercised our tests) as it implements SafeSliceAccess. I'll fix this later by splitting SafeSliceAccess into its 2 properties. Co-authored-by: Casper Neo <cneo@google.com>
2021-04-26Mark endian_scalar as unsafe. (#6588)Casper20-100/+134
* Mark endian_scalar as unsafe. Also - removed the deprecated flexbuffer slice from example - fixed some cargo warnings * Assertions and read_scalar made unsafe * Clippy lints * Add to Safety Co-authored-by: Casper Neo <cneo@google.com>
2021-04-24[swift] Implements union strings (#6589)mustiikhalil19-281/+397
2021-04-22[Rust] Fix small mistyping (#6585)Alexander Zaitsev1-1/+1
Hi! Just a veeeeeery small fix in the Rust sample. No functionality is affected. That's not important at all but annoying for my eyes :)
2021-04-22[TS] Commit the generated tests code (#6579)罗泽轩2-0/+173
* [TS] Ignore generated monster_test_grpc files * [TS] Commit the generated tests code
2021-04-19chore: ensure bash is used to generate code (#6577)罗泽轩1-1/+1
In some platforms, like Ubuntu, `sh` is linked to `dash` but not `bash`.
2021-04-19[Lua] Fix EnforceNumberAndPack for bool type (#6576)罗泽轩2-1/+2
2021-04-19[TS] Remove duplicated build-ts ci (#6575)罗泽轩1-12/+0
Now we already have a real build-ts ci job, let's remove the commented one.
2021-04-19[Rust] Specify Minimum Supported Rust Version (#6573)Ádám Lippai1-0/+1
Related to #6572
2021-04-16[Rust] Add support for fixed size arrays (#6548)Eddie Linder25-77/+1442
* Add support for fixed size arrays * clang-format * Update rust image to 1.51 to support const generics * Handle correctly big endian * Add fuzz tests and clean code * Add struct fuzz test and optimize struct arrays for api * Bump flatbuffers crate version
2021-04-15[Kotlin][FlexBuffers] Add support for Kotlin-iOS (#6564)Paulo Pinheiro1-0/+17
With this change, Flexbuffers for Kotlin now supports iOS(arm32, arm64, X64). WatchOS and tvOS not supported.
2021-04-15silenced clippy warning (#6565)Kamil Rojewski8-0/+15
2021-04-12[Kotlin] Bump kotlinx.benchmark dependency to 0.3.0 (#6560)Paulo Pinheiro3-7/+3
Kotlinx.benchmark project just abandoned bintray and moving to maven central, removing the artifacts from bintray and causing missing dependencies in our build. So we are updating the dependency to point to the new version on maven central. More information in: https://github.com/Kotlin/kotlinx-benchmark/commit/53ee45d0d914ceff111d3581ba3f5897fa897adc#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
2021-04-12[TS] Add Build TS to CI jobs (#6524)Björn Harrtell77-9040/+2908
* Add Build TS to CI jobs * Add npm compile step * Fix syntax * Add required code gen for TS * Exit on failure * Make TS code gen identical to test run * Remove duplicate TS code gen artifacts * Remove bad gitignore * Forgot parts of generate_code and make sure same settings for test run * Don't forget about the bat * Try and fix flatc args * Another attempt to fix args * Fix typo * Commit up to date code gen * Another attempt to fix sh/bat * Move -o param to after -I * Commit missing code gen file * Fix grpc code gen and test * Another grpc code gen fix * Rework to not use ts folder * Fix env vars in bat and make less churn * Move TS code gen to dedicated folder * Fix transpilation output folder and module paths * Fixes to code gen * Include generated js * Moved ts code gen * Remove test ts code gen folder
2021-04-12[Kotlin][FlexBuffers] Add support for Kotlin-JS (#6554)Paulo Pinheiro9-101/+195
Flexbuffers for Kotlin currently supports JVM and MacOS. This change introduces support to JS as well.
2021-04-06Default-empty vectors of enums (#6505)Casper12-28/+238
* disable clippy * Vector of enum default * swift and tests * git clang format * Rewrite enum parser checks * Remove Voids from more_defaults * vector enum swift * remove vector accessor from swift * clang format Co-authored-by: Casper Neo <cneo@google.com>
2021-04-05[CI] fixes buildkite (#6544)mustiikhalil3-4/+4
2021-04-01Limit formatter to pull requests only (#6540)mustiikhalil1-1/+2
2021-03-29Rust structz (#6539)Casper25-555/+1672
* Rust structz * struct of structs test * swift tmp variables Co-authored-by: Casper Neo <cneo@google.com>
2021-03-29[Kotlin][FlexBuffers] JSON support for Flexbuffers (#6417)Paulo Pinheiro8-40/+1402
* [Kotlin][FlexBuffers] Add JSON support for FlexBuffers * [Kotlin][Flexbuffers] Re-implement JSON parser with a tokenizer.
2021-03-25[grpc] Support latest version of grpc PoC (#6338)Jeong YunWon15-285/+83
* use grpcpp rather than deprecated grpc++ * grpcpp Deserialize take ByteBuffer instead of grpc_byte_buffer * grpc 1.36.0 * Fix to use grpc 1.36.0 * Fix CMakeLists to refer gRPC * add find_package(Threads) * Update bazel deps * Apply workaround about boringssl build error * Install latest cmake for osx on travis-ci Co-authored-by: Yeom Gyusun <omniavinco@gmail.com>
2021-03-25fixed packing structs (#6530)Kamil Rojewski4-8/+15
* fixed packing structs in nested buffers * fixed packing structs
2021-03-18[GO] Tries to add go format to the CI (#6518)mustiikhalil3-1/+55
* Trys to add go format to the CI Adds Gofmt to CI * Adds formatting for go dir in grpc * Small fix
2021-03-18[C++] #6501 - Problem when mapping a native type multiple times (#6514)Michael9-51/+244
* [C++] #6501 - Problem when mapping a native type multiple times - idl.h: added "native_type_pack_name" - flatbuffers.h: added CreateVectorOfNativeStructs variants which receive a pointer to the serialization function - idl_gen_cpp.cpp: adapted code generation in case "native_type_pack_name" attribute is present - extended tests & docs; improved surrounding native_type docs a little * integrated review feedback
2021-03-18[fuzzer] Add `monster_debug` target (#6513)Vladimir Glavnyy4-8/+60
Add the `monster_debug` target for better troubleshooting. Improve oss-fuzz logs.
2021-03-17[Swift] Removes allman rule (#6519)mustiikhalil1-1/+0
2021-03-15[flexbuffers, json] Parse `nan` and `inf` (#6512)Vladimir Glavnyy3-0/+52
2021-03-11fixed packing structs in nested buffers (#6509)Kamil Rojewski5-10/+21