Skip to main content

protoc_builder 0.6.1 copy "protoc_builder: ^0.6.1" to clipboard
protoc_builder: ^0.6.1 copied to clipboard

A build script for compiling Protocol Buffers without needing to manually install protoc or the protoc_plugin.

0.6.1 #

  • Fix generated files being deleted by build_runner 2.16.1 and newer. protoc writes its output to the package path (out_dir), but the builder did not declare build_to: source, so build_runner treated those files as conflicting outputs of a cached builder and deleted them on every incremental build; fixes #35.

0.6.0 #

  • Fix builds failing with grpc: false on protoc_plugin 22.3.0 and newer, which no longer generate empty .pbserver.dart files. This affected the default configuration in 0.5.0 and 0.5.1.
  • Support building inside pub workspaces (dart run build_runner build --workspace): protoc is now run from the root of the package being built instead of the current directory (thank you to SynSzakala!)
  • Breaking for subclasses of ProtocBuilder: loadOutputFile now takes the package root as a second parameter.

0.5.1 #

  • Add protoc_plugin_parameters option to pass custom parameters to the Dart protoc plugin (thank you to fischerscode!)

0.5.0 #

  • Support protoc_plugin versions 23.0.0 and newer, which use pub workspaces (thank you to SynSzakala and quaaantumdev!)
  • Allow build 3.x and 4.x as well as archive 4.x, so the package can be used together with the current build_runner without dependency_overrides
  • Bump the default protobuf_version to 36.1 and the default protoc_plugin_version to 25.0.0. Note that code generated by protoc_plugin 25.0.0 requires protobuf: ^6.0.0 in your project, and compiling the plugin requires Dart SDK 3.7.0 or newer. Pin protoc_plugin_version in your build.yaml if you need to stay on an older version.
  • Require Dart SDK 3.0.0 or newer

0.4.1 #

  • Fix race conditions (thank you to TomKrauss!)

0.4.0 #

  • Add option to precompile protoc_plugin Dart scripts for better performance

0.3.2 #

  • Upgrade dependencies

0.3.1 #

Courtesy of BenVercammen:

  • Added option to use local protoc instead of downloading one
  • Extracted options that might be useful when overriding the ProtocBuilder class
  • Export the builder.dart file so the ProtocBuilder class can actually be found

0.3.0 #

  • Support plugin version 20.0.1 (thank you to stasgora!)
  • Fix package not working on Windows (thank you to Levi-Lesches!)

0.2.1+1 #

  • I dun goofed

0.2.1 #

  • Document default values in README
  • Document Protobuf root directory in README

0.2.0 #

  • Add config flag for generating gRPC clients and servers (.pbgrpc.dart files)

0.1.1 #

  • Ensure that changes to input .proto files are watched (thank you to ewaters!)

0.1.0 #

  • Initial version
21
likes
150
points
2.47k
downloads

Documentation

API reference

Publisher

verified publisherjulien-scholz.dev

Weekly Downloads

A build script for compiling Protocol Buffers without needing to manually install protoc or the protoc_plugin.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

archive, build, http, path, yaml

More

Packages that depend on protoc_builder