commit | c4fd596252e0467c1ee2a2f1832c561399efd5a2 | [log] [tgz] |
---|---|---|
author | Ömer Sinan Ağacan <omersa@google.com> | Sat Jan 06 09:57:17 2024 +0100 |
committer | GitHub <noreply@github.com> | Sat Jan 06 09:57:17 2024 +0100 |
tree | 9fc6385f33f2e6afb8181f3c2a0843e2d7a9e7e8 | |
parent | 20ec6856b65b7fd6445219fdec24d90b414f7469 [diff] |
Export GeneratedMessageGenericExtensions in generated files (#907) Currently when a user calls deprecated methods `clone` or `copyWith`, the deprecation message points to `GeneratedMessageGenericExtensions` `deepCopy` and `rebuild` methods. However we can't just replace `clone` with `deepCopy` as currently the extension is not exported by the generated files. Instead we need to import the library explicitly in the use site. We could mention this in the deprecation message ("Use rebuild from protobuf library instead"), but it's more convenient to just export the extension in the generated message files. Closes #503.
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 for Dart.
Package | Description | Published Version |
---|---|---|
protobuf | A support library for the generated code | |
protoc_plugin | A Dart back-end for the protoc compiler | |
api_benchmark | Benchmarking for various API calls | |
query_benchmark | Benchmark for encoding and decoding of a “real-world” protobuf |
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.