commit | 0447bd20dbf879d839fbd9e24c1731a71cfb39bb | [log] [tgz] |
---|---|---|
author | Ömer Sinan Ağacan <omersa@google.com> | Wed Sep 24 18:54:19 2025 +0100 |
committer | GitHub <noreply@github.com> | Wed Sep 24 19:54:19 2025 +0200 |
tree | 3c8e792a38b13692f8d648690fda291ce9dc8c32 | |
parent | 660bbc87d6067c49eac039b7f502125d7ca658b3 [diff] |
Run plugin with asserts when building test protos (#1055) Currently we run the tests with assertions but that doesn't cover some of the code paths. When building the test protos we don't run the plugin with assertions. Add a new executable `protoc-gen-dart-debug` that is the same as `protoc-gen-dart`, but passes `--enable-asserts` to Dart. Use it when building test protos. This triggers an assertion which was reported in #608. The assertion is clearly wrong (we call the function for repeated fields a few lines above the assertion) and no one knows or remembers why it's there. Remove the assertion. Closes #608.
Protocol Buffers (protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.
This repository is home to packages related to protobuf support for Dart.
Package | Description | Published Version |
---|---|---|
protobuf | Runtime library for protocol buffers support. | |
protoc_plugin | A protobuf protoc compiler plugin used to generate Dart code. | |
benchmarks | Benchmarks for various protobuf functions. |
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.