commit | ee7729707ce0551541a9e1f6152aa8fd246f956e | [log] [tgz] |
---|---|---|
author | Scott James Remnant <keybuk@google.com> | Mon Apr 18 18:12:07 2022 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 10 20:20:18 2022 +0000 |
tree | aeb4018037450de00508254271e3c07b8f630f35 | |
parent | 48df483dbb69d7ecfbe01e7f94832b855758e412 [diff] |
pw_protobuf: Support proto3 optional fields When a proto3 field is labelled as an optional, wrap the struct Message type with std::optional<> to support presence. Bug: pwbug/652 Change-Id: I328e1d0b1d534b732a8d4690305975b46579f014 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/91904 Reviewed-by: Armando Montanez <amontanez@google.com> Pigweed-Auto-Submit: Scott James Remnant <keybuk@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/