Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d9892bbd authored by Martin Geisler's avatar Martin Geisler
Browse files

pdl: Add support for enums

This adds support for parsing and serializing enum fields.

The canonical test vectors work.

Tests have been added to the canonical PDL files: they demonstrate
that we can generate valid Rust code. A test was added to show that we
need “#[repr(u64)]” for an enum with a maximum discriminant.

Test: atest pdl_tests pdl_rust_generator_tests_{le,be}
Change-Id: Id65bf831ddde8ade9780f89096842ef9516cf4c3
parent 302e8333
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment