commit | bb99dc8b515aa8a5441931977ad54cd87f4f7b80 | [log] [tgz] |
---|---|---|
author | Sam Saccone <samccone@google.com> | Tue Jul 18 17:55:05 2023 +0000 |
committer | Sam Saccone <samccone@google.com> | Tue Jul 18 17:55:05 2023 +0000 |
tree | d12c2cf6601ca04fb14022ce9dc5a7e8f3f195e4 | |
parent | afcefe6794d7b84ca0fabd35fa05517e77be7015 [diff] |
Move OWNER reference master=>main. BUG=b/291759353 Change-Id: Ib7384c3fe626b38c797c4aa91806e095e7d0e24b
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: