commit | afcefe6794d7b84ca0fabd35fa05517e77be7015 | [log] [tgz] |
---|---|---|
author | Weilun Du <[email protected]> | Thu Jul 13 22:04:09 2023 +0000 |
committer | Alfred Piccioni <[email protected]> | Fri Jul 14 12:33:33 2023 +0000 |
tree | e00e76908c9390c398f7ffc6ca31cf93b9aaa8ea | |
parent | 157747f2482e437bbb787f5d9bb5bfa3c578f4c8 [diff] |
Revert "Update pdl-compiler to 0.1.4" This reverts commit 157747f2482e437bbb787f5d9bb5bfa3c578f4c8. Reason for revert: emu-master-dev build breakage. Fixes: 291216502 Change-Id: I088df5e923530729e314b926b2246c3e5b0f5dc4
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: