Files
flatbuffers/tests
Casper 9fa1d27059 Rework enums in rust. (#6098)
* Rework enums in rust.

They're now a unit struct, rather than an enum. This is a
backwards incompatible change but the previous version had UB
and was also backwards incompatible so...

* Update and test sample rust flatbuffers

* Use bitflags crate to properly support rust enums.

Previously, the bitflags attribute was just ignored. This is a breaking change
as the bitflgs API is not like a normal rust enum (duh).

* variant_name() -> Option<_>

* repr transparent

* Reexport bitflags from flatbuffers

* Make bitflags constants CamelCase, matching normal enums

* Deprecate c-style associated enum constants

Co-authored-by: Casper Neo <cneo@google.com>
2020-10-19 11:40:03 -07:00
..
2019-10-31 11:13:45 -07:00
2019-11-14 15:46:46 -08:00
2020-10-02 10:30:39 -07:00
2020-02-11 15:02:21 -08:00
2020-05-07 14:11:26 -07:00
2020-05-07 14:11:26 -07:00
2020-09-11 14:20:32 -07:00