protoc_plugin 0.7.4 copy "protoc_plugin: ^0.7.4" to clipboard
protoc_plugin: ^0.7.4 copied to clipboard

outdatedDart 1 only

Protoc compiler plugin to generate Dart code

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate protoc_plugin

Use it

The package has the following executables:

$ protoc-gen-dart

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add protoc_plugin

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  protoc_plugin: ^0.7.4

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:protoc_plugin/base_type.dart';
import 'package:protoc_plugin/bazel.dart';
import 'package:protoc_plugin/client_generator.dart';
import 'package:protoc_plugin/code_generator.dart';
import 'package:protoc_plugin/const_generator.dart';
import 'package:protoc_plugin/enum_generator.dart';
import 'package:protoc_plugin/extension_generator.dart';
import 'package:protoc_plugin/file_generator.dart';
import 'package:protoc_plugin/grpc_generator.dart';
import 'package:protoc_plugin/indenting_writer.dart';
import 'package:protoc_plugin/linker.dart';
import 'package:protoc_plugin/message_generator.dart';
import 'package:protoc_plugin/names.dart';
import 'package:protoc_plugin/options.dart';
import 'package:protoc_plugin/output_config.dart';
import 'package:protoc_plugin/protobuf_field.dart';
import 'package:protoc_plugin/protoc.dart';
import 'package:protoc_plugin/service_generator.dart';
80
likes
0
pub points
93%
popularity

Publisher

verified publishergoogle.dev

Protoc compiler plugin to generate Dart code

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dart_style, fixnum, path, protobuf

More

Packages that depend on protoc_plugin