commit | 157747f2482e437bbb787f5d9bb5bfa3c578f4c8 | [log] [tgz] |
---|---|---|
author | Henri Chataing <[email protected]> | Thu Jul 13 13:04:10 2023 +0000 |
committer | Henri Chataing <[email protected]> | Thu Jul 13 14:13:51 2023 +0000 |
tree | bfd879a08345d51825adf0032f86925b69dfde4b | |
parent | d43572c91e7eeb47f80cc60baaef8a1afa9df225 [diff] |
Update pdl-compiler to 0.1.4 Test: TreeHugger Change-Id: I859eaafd97b48b81a3f9da1dad00e91e5717abc0
PDL is a domain specific language for writing the definition of binary protocol packets. Parsing and validating packets from raw bytes is tedious and error prone in any language. PDL generates memory safe and tailored backends for multiple target languages:
- Rust - C++ - Python
Historically PDL was developed as part of the Android Bluetooth stack (bluetooth_packetgen) as a way to generate the parser and serializer for Bluetooth packets, and reduce the number of memory safety issues that come with manipulating and validating raw data.
cargo run my-protocol.pdl --output-format rust > my-protocol.rs
Language specific instructions are provided for all supported backends: