|
1 | | -Protoc compiler Dart plugin |
2 | | -=========================== |
| 1 | +# Dart plugin for the protoc compiler |
3 | 2 |
|
4 | | -This repository provides a plugin for the [protoc compiler](https://developers.google.com/protocol-buffers/docs/cpptutorial#compiling-your-protocol-buffers). |
| 3 | +[](https://travis-ci.org/dart-lang/dart-protoc-plugin) |
| 4 | +[](https://pub.dartlang.org/packages/protoc_plugin) |
| 5 | + |
| 6 | +This repository provides a plugin for the [protoc |
| 7 | +compiler](https://developers.google.com/protocol-buffers/docs/cpptutorial#compiling-your-protocol-buffers). |
5 | 8 | It generates Dart files for working with data in protocol buffers format. At |
6 | | -this time we only support [proto2](https://developers.google.com/protocol-buffers/docs/proto), but proto3 may work |
7 | | -in simple cases due to backwards compatibility. |
| 9 | +this time we only support |
| 10 | +[proto2](https://developers.google.com/protocol-buffers/docs/proto), but proto3 |
| 11 | +may work in simple cases due to backwards compatibility. |
8 | 12 |
|
9 | 13 | Requirements |
10 | 14 | ------------ |
11 | 15 |
|
12 | | -To compile a .proto file, you must use the 'protoc' command which is |
13 | | -[installed separately](https://developers.google.com/protocol-buffers/docs/downloads). |
| 16 | +To compile a .proto file, you must use the 'protoc' command which is [installed |
| 17 | +separately](https://developers.google.com/protocol-buffers/docs/downloads). |
14 | 18 | Protobuf 3.0.0 or above is required. |
15 | 19 |
|
16 | 20 | The generated files are pure Dart code that run in either in the Dart VM or in a |
17 | | -browser (using dart2js). They depend the [protobuf Dart package](https://pub.dartlang.org/packages/protobuf). A Dart project that includes |
18 | | -generated files should add "protobuf" to its pubspec.yaml file. |
| 21 | +browser (using dart2js). They depend the [protobuf Dart |
| 22 | +package](https://pub.dartlang.org/packages/protobuf). A Dart project that |
| 23 | +includes generated files should add "protobuf" to its pubspec.yaml file. |
| 24 | + |
19 | 25 |
|
20 | 26 | How to build and use |
21 | 27 | -------------------- |
|
0 commit comments