commit | b83e8c5e6aae2434c2d3dc977f4954e8e2d7774b | [log] [tgz] |
---|---|---|
author | Henri Chataing <[email protected]> | Mon Jul 15 22:02:47 2024 +0000 |
committer | Henri Chataing <[email protected]> | Mon Jul 15 22:26:48 2024 +0000 |
tree | 3c541b1366d419b9c78ca2779256960c25d932a4 | |
parent | bf618f8ed0f040e6917af22441eedfa877874361 [diff] |
Remove patch to create scripts/Android.bp scripts/Android.bp is now preserved by the crate updater tool Change-Id: I44feb69c663ffd11dd128d38efa82bfb8a6ba39e Test: TreeHugger
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: