commit | e6036688e26d7c89885bb51e23d3f03495125bff | [log] [tgz] |
---|---|---|
author | Henri Chataing <[email protected]> | Tue Jun 20 16:39:51 2023 +0000 |
committer | Henri Chataing <[email protected]> | Tue Jun 20 20:53:50 2023 +0000 |
tree | 2df2fcbccd2392d4681c8ae8ff7004a2583a8bd3 | |
parent | db9fffe8304d4c6c59b5695c1394495d8c3290e5 [diff] |
Update pdl-compiler to 0.1.2 Test: TreeHugger Change-Id: Ia18a174548a23d7bd9a21e41934d5ed123e44d6e
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: