Ruopt enum (#6156)
authorCasper <casperneo@uchicago.edu>
Fri, 2 Oct 2020 17:30:39 +0000 (10:30 -0700)
committerGitHub <noreply@github.com>
Fri, 2 Oct 2020 17:30:39 +0000 (10:30 -0700)
commit8ec8322f091f93a6d5401a3ba9b2a164b28c9aee
treecacbfcccb81cbe547bedc62a1213f2f29ccba2bb
parentbbcc85fd4c77c078a5d9ca1680cc0b4b0b5c4c95
Ruopt enum (#6156)

* Rust support for optional enums

* make optional_scalars2 for languages that support optional enums

Co-authored-by: Casper Neo <cneo@google.com>
src/idl_gen_rust.cpp
tests/generate_code.sh
tests/optional_scalars2.fbs [new file with mode: 0644]
tests/optional_scalars2_generated.rs [moved from tests/optional_scalars_generated.rs with 96% similarity]
tests/rust_usage_test/tests/integration_test.rs
tests/rust_usage_test/tests/optional_scalars_test.rs