google / google/protobuf.dart

Setup may be simpler

Open
#331 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
572
Forks
196
Avg merge
1h 59m
Merged PRs (30d)
2

Description

I find the setup pretty complex in a typical developer environment. Things could be a lot more straightforward.

For me, the best approach would be to use [build_runner](https://dart.dev/tools/build_runner) like [built_value](https://pub.dev/packages/built_value). You add the dependency to the plugin in your project pubspec, and then use the `pub run build_runner watch` to generate the message and service classes from .proto files in project.

The protoc should also be included.

As a reference, it's actually how it works in the .NET world : you add your NuGet package and you're fine.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.