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