commit | 5fb77dbbede635ce447bedd38ea67e5cc32a4e72 | [log] [tgz] |
---|---|---|
author | Henri Chataing <[email protected]> | Tue Jul 16 00:08:11 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Tue Jul 16 00:08:11 2024 +0000 |
tree | 3c541b1366d419b9c78ca2779256960c25d932a4 | |
parent | d4c1eefd89cf7be07f6aabf428eec2aba916cc61 [diff] | |
parent | b83e8c5e6aae2434c2d3dc977f4954e8e2d7774b [diff] |
Remove patch to create scripts/Android.bp am: b83e8c5e6a Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pdl-compiler/+/3174225 Change-Id: I6cc3564f22ea22a7f0ce8f8ab50aafb743a3685b Signed-off-by: Automerger Merge Worker <[email protected]>
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: