pdl: Parse structs like packets
The auto-generated “Packet” suffix now seems wrong, so I removed it.
This means that both “packet Foo” and “struct Foo” will generate the
following Rust types:
pub struct Foo
pub struct FooBuilder
struct FooData
One potential problem with this: if someone has a “packet Packet”,
this now collides with “trait Packet” from our preamble. We might need
to correct for this when we integrate the generated code with clients.
Test: atest pdl_tests pdl_rust_generator_tests_{le,be}
(cherry picked from https://android-review.googlesource.com/q/commit:001619d1f66f4a2a37f84cbe7891cf534ba4aec2)
Merged-In: I19354010e46ef1b5738fee9f7fb13ff7778d1b03
Change-Id: I19354010e46ef1b5738fee9f7fb13ff7778d1b03
Loading
Please register or sign in to comment