Skip to content

The well-known types from the Google Protobuf compiler, in Dart.

License

Notifications You must be signed in to change notification settings

itergia/protobuf_wellknown

Repository files navigation

The well-known types from the Google Protobuf compiler.

This is similar to protobuf_google, but includes a builder to generate the files, and uses protobuf version 3.

See https://protobuf.dev/reference/protobuf/google.protobuf/ for more information.

Features

Includes a library to import all types at once, for use in your day-to-day development.

It also exports each type separately, useful in the compiled Protobuf files. You will likely only care about the .pb.dart files. protoc-gen-dart generates separate .pbenum and .pbjson files for the sake of Dartium, and it's unclear if these should ever be imported manually. See the protobuf.dart commit.

Getting started

dart pub add protobuf_wellknown

Usage

import "package:protobuf_wellknown/protobuf_wellknown.dart";

See https://pub.dev/packages/protobuf_wellknown.

Contributions

About

The well-known types from the Google Protobuf compiler, in Dart.

Resources

License

Stars

Watchers

Forks

Packages