commit | 4b6ed01c67d29936013e4aae857012e0ab0fca1f | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Tue Aug 06 16:55:28 2024 +0000 |
committer | James Farrell <[email protected]> | Tue Aug 06 16:55:28 2024 +0000 |
tree | fb582b12fb0cae4da93bc3f221eb007309772c1a | |
parent | 2f616e0485818d387c421973a77b271441812de7 [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: Id360bb916dc872c1034a273f0f923d5e4f1961a0
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: