Rust Object API (#6070)
authorCasper <casperneo@uchicago.edu>
Fri, 22 Jan 2021 18:07:32 +0000 (13:07 -0500)
committerGitHub <noreply@github.com>
Fri, 22 Jan 2021 18:07:32 +0000 (13:07 -0500)
commit1da0a2dfac4bd9a6876a7c39c4eea5eeefc36aa2
treea48ac3f7455c980b05ca41d3e44d5e367b0260d2
parent796ed68faf434cac90f094a5fdf47137ba74e5a2
Rust Object API (#6070)

* inital commit of rust object api

* Required fields support.

* clang fallthrough

* Fix unused variables

* just don't fall through

* remove comment

* s/panic/unreachable

* Tests for object API

* Added defaults

* deleted unintentionally added files and updated .bat file

* fix bat file

* clang format

* Cargo clippy checks

* remove commented out code

* clippy allows

* Remove matches! macro since we're not yet at Rust v1.42

* install clippy in RustTest.sh

* move line

Co-authored-by: Casper Neo <cneo@google.com>
21 files changed:
rust/flexbuffers/src/builder/mod.rs
rust/flexbuffers/src/builder/value.rs
rust/flexbuffers/src/flexbuffer_type.rs
rust/flexbuffers/src/lib.rs
samples/monster_generated.rs
samples/sample_binary.rs
samples/sample_flexbuffers.rs
src/idl_gen_rust.cpp
tests/RustTest.sh
tests/generate_code.bat
tests/generate_code.sh
tests/include_test/include_test1_generated.rs
tests/include_test/sub/include_test2_generated.rs
tests/monster_test_generated.rs
tests/namespace_test/namespace_test1_generated.rs
tests/namespace_test/namespace_test2_generated.rs
tests/optional_scalars_generated.rs
tests/rust_usage_test/bin/flatbuffers_alloc_check.rs
tests/rust_usage_test/bin/monster_example.rs
tests/rust_usage_test/tests/integration_test.rs
tests/rust_usage_test/tests/optional_scalars_test.rs