commit | ab1e1d5d7df6212dafb86534100e77b2015af04c | [log] [tgz] |
---|---|---|
author | Henri Chataing <henrichataing@google.com> | Thu Jun 29 14:22:21 2023 +0000 |
committer | Henri Chataing <henrichataing@google.com> | Tue Jul 25 12:51:10 2023 +0000 |
tree | 234c77e4c1dcc87ac2d90d53e3c0009331c55694 | |
parent | 864dc10f827d36ca849958d9a0ac5af4cd0f80ab [diff] |
Add //system/nfc:__subpackages__ to the package visibility Bug: 292164611 Test: m casimir Change-Id: I37b5f65ef437c8d8259e9fda8d5de28085229c96
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: