Add well-known type support (#1081)

- Add generated Dart for the well-known protos to the package.

- Special case `google/protobuf/...` imports in the plugin to generate imports
  to the libraries in the protobuf package.

  Note: `protoc` already special cases these imports, you don't have to specify
  paths to them with `-I...`.

  With this change you also don't have to manually compile them to Dart
  classes.

Fixes #1073.
Fixes #817.
Fixes #780.
Fixes #483.
85 files changed
tree: 010b8f01e880d6079ad55f7e9b40cf67e41237c9
  1. .github/
  2. benchmarks/
  3. protobuf/
  4. protoc_plugin/
  5. tool/
  6. .gitignore
  7. analysis_options.yaml
  8. AUTHORS
  9. LICENSE
  10. pubspec.yaml
  11. README.md
README.md

Protobuf support for Dart

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.

PackageDescriptionPublished Version
protobufRuntime library for protocol buffers support.pub package
protoc_pluginA protobuf protoc compiler plugin used to generate Dart code.pub package
benchmarksBenchmarks for various protobuf functions.

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.