[Rust] Add support for fixed size arrays (#6548)
authorEddie Linder <eddilinn@gmail.com>
Fri, 16 Apr 2021 15:15:59 +0000 (18:15 +0300)
committerGitHub <noreply@github.com>
Fri, 16 Apr 2021 15:15:59 +0000 (11:15 -0400)
commitda3bb64ef6c8410fbe05a80523d60735e6f50833
treeb4b8cb429e59c8dfe3821fc3f533b0e1afe46ccc
parent151900ba9645253fa8e1f780b5446d32fc30c4a5
[Rust] Add support for fixed size arrays (#6548)

* 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
25 files changed:
rust/flatbuffers/Cargo.toml
rust/flatbuffers/src/array.rs [new file with mode: 0644]
rust/flatbuffers/src/builder.rs
rust/flatbuffers/src/endian_scalar.rs
rust/flatbuffers/src/lib.rs
rust/flatbuffers/src/vector.rs
rust/flatbuffers/src/verifier.rs
samples/monster_generated.rs
src/idl_gen_rust.cpp
src/idl_parser.cpp
tests/arrays_test_generated.rs [new file with mode: 0644]
tests/docker/languages/Dockerfile.testing.rust.1_51_0 [moved from tests/docker/languages/Dockerfile.testing.rust.1_40_0 with 75% similarity]
tests/docker/languages/Dockerfile.testing.rust.big_endian.1_51_0 [moved from tests/docker/languages/Dockerfile.testing.rust.big_endian.1_40_0 with 89% similarity]
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/more_defaults_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/Cargo.toml
tests/rust_usage_test/tests/arrays_test.rs [new file with mode: 0644]
tests/rust_usage_test/tests/integration_test.rs