flatbuffers/samples
Max Burke 1d294a31b8
Implement Serialize on generated rust types (#7022)
* fix for rust build

* Rust: Implement Serialize on generated types

For debugging convenience it is really handy to be able to dump out
types as another format (ie: json). For example, if we are logging a
type to a structured logging system, or even printing it out in a
structured way to the console.

Right now we handle this by shelling out to `flatc` which is not ideal;
by implementing Serialize on the generated types we can use any of the
Serializer-implementing packages for our structured debug output.

* clang-format

* Make the flatbuffers Rust crate only have an optional dependency on the `serde` packages.

* fix warning

* fix rust test build

* Oh yeah this needs to be initialized

* fix toml syntax

* code review feedback

* rebuild test data
2022-01-30 19:29:18 -05:00
..
lua/MyGame/Sample
rust_generated Implement Serialize on generated rust types (#7022) 2022-01-30 19:29:18 -05:00
csharp_sample.sh Revert "Convert net/FlatBuffers project to be compatible with netstandard (#4811)" 2018-10-29 17:21:30 -07:00
dart_sample.sh Dart 2.0 release prep (#6759) 2021-08-02 13:31:36 -07:00
go_sample.sh
java_sample.sh
javascript_sample.sh
kotlin_sample.sh Fixed missing generated code. 2019-08-19 17:57:23 -07:00
monster.bfbs Lua Generator using IR. (#6940) 2021-12-02 21:29:19 -08:00
monster.fbs [C++]Sync the sample monster.fbs file with the tutorial (#5277) 2019-04-05 12:34:53 -07:00
monster_generated.h [C++] Support C++ object copies and moves (#5988) 2022-01-29 14:24:24 -08:00
monster_generated.lobster Lobster: added builder API for tables 2019-05-22 19:42:13 -07:00
monster_generated.swift More missing version changes 2021-05-10 11:45:16 -07:00
monsterdata.json [docs] typo: updates monsterdata.json to be valid json (#5978) 2020-06-17 22:35:24 -07:00
php_sample.sh
python_sample.sh
sample_bfbs.cpp Ran src/clang-format-all.sh (#5617) 2019-11-11 09:29:37 -08:00
sample_binary.cpp Ran src/clang-format-all.sh (#5617) 2019-11-11 09:29:37 -08:00
sample_binary.go
sample_binary.lobster Lobster: added builder API for tables 2019-05-22 19:42:13 -07:00
sample_binary.lua
sample_binary.py Fix sample_binary.py to use latest EndVector without a size. (#6478) 2021-02-19 12:13:50 -08:00
sample_binary.rs Rework how Rust generated files are laid out (#6731) 2021-07-22 19:02:28 -04:00
sample_binary.swift Fixes grammer (#6477) 2021-02-19 12:16:38 -08:00
sample_flexbuffers.rs Rework how Rust generated files are laid out (#6731) 2021-07-22 19:02:28 -04:00
sample_flexbuffers_serde.rs Rust Flexbuffers (#5669) 2020-05-07 14:11:26 -07:00
sample_text.cpp Ran src/clang-format-all.sh (#5617) 2019-11-11 09:29:37 -08:00
sample_text.lobster Fixed Lobster implementation to work with latest language features 2019-05-22 11:48:10 -07:00
SampleBinary.cs
SampleBinary.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
SampleBinary.kt Add basic Kotlin support (#5409) 2019-07-22 16:05:15 -07:00
SampleBinary.php