commit | 9d0d0d3787055d136a085bc8060d350992cf6d02 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Wed Aug 28 22:18:41 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Aug 28 22:18:41 2024 +0000 |
tree | 298ce4189e419baffd78abb4be1d766eb16394c8 | |
parent | 681a3a2afaa35fae457992f7d7e83f232dbc465c [diff] | |
parent | 324eb7dd9644b00a13bc52dda89ed7f7c3b978b8 [diff] |
Migrate 25 crates to monorepo. am: 324eb7dd96 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pdl-runtime/+/3248515 Change-Id: I4df95a0f7e68b9d7ca836096596ad7d1f9e94c39 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: