commit | 10f007505aee23a9b5e72c09742e9292fd8b719a | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Thu Oct 05 21:37:22 2023 +0000 |
committer | James Farrell <[email protected]> | Thu Oct 05 21:37:22 2023 +0000 |
tree | 8aa5a437407343de068b170301a097748b23eca8 | |
parent | b32d1823b491678db6f89438450945e8c973b5e2 [diff] |
Update Android.bp to reflect aosp/2763825 Test: Ran cargo2android. Treehugger. Change-Id: Ic4101aaf0ee2aec8ad932189c5dc5c7ba634c1cb
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: