_bazel_codegen 0.3.2

  • Installing
  • Versions
  • 49


  • Increased the upper bound for the sdk to <3.0.0.
  • Drop dependency on build_barback.
  • Use the latest build.
  • Support package:analyzer 0.32.0.
  • Don't pass any analysis options to the summary resolver - use the defaults.


  • Fixed runtime errors when running in Dart 2 mode via --preview-dart-2.


  • Expand constraint on package:build to allow version 0.12.x


  • Correct expected outputs when running builders taking disjoint input extensions.


Breaking Changes

  • Drop BuilderFactory in favor of the typedef from package:build. The factories now take a BuilderOptions argument rather than List<String>.


  • Update to build 0.11.0, update interface for findAssets.


  • Breaking: CLI argument change: Replace in-extension and out-extensions with build-extensions.


  • Upgrade to package:build v0.10


  • Allow 'side' outputs from a builder. When multiple builders are chained the inputs to builders are no longer limited to only the outputs from the previous builder.


  • Support for build 0.9.0


  • Add a toString() on AssetSource.
  • Run analysis in Strong mode when using summaries


  • Upgrade to build 0.8.0, implement findAssets api


  • Give priority to reading inputs directly rather than resolving through a summary if they are duplicated.


  • Throw an exception when attempting to do resolution on an input file that is also included in a dependency when using summaries.


  • Wrap generation in Chain.capture and print full asynchronous stack traces
  • BREAKING bazelGenerate and noArgs have been dropped. These are unused from the template file in rules_dart which is the supported approach.


  • Only read '.dart' files as sources for the Resolver. This avoids a problem trying to read binary assets as if they were strings. Poorly encoded .dart files can still cause an error - but this case we'd expect to fail.
  • Fix a bug where failure to read an asset during the Resolvers.get call would cause the entire process to hang.
  • Rely on the print capturing from package:build


  • Bug fix: Correct the import after library was renamed with a leading underscore.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  _bazel_codegen: ^0.3.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:_bazel_codegen/_bazel_codegen.dart';
Version Uploaded Documentation Archive
0.3.2 Jul 22, 2018 Go to the documentation of _bazel_codegen 0.3.2 Download _bazel_codegen 0.3.2 archive
0.3.1+2 Apr 17, 2018 Go to the documentation of _bazel_codegen 0.3.1+2 Download _bazel_codegen 0.3.1+2 archive
0.3.1+1 Jan 31, 2018 Go to the documentation of _bazel_codegen 0.3.1+1 Download _bazel_codegen 0.3.1+1 archive
0.3.1 Dec 11, 2017 Go to the documentation of _bazel_codegen 0.3.1 Download _bazel_codegen 0.3.1 archive
0.3.0 Nov 29, 2017 Go to the documentation of _bazel_codegen 0.3.0 Download _bazel_codegen 0.3.0 archive
0.2.1 Nov 3, 2017 Go to the documentation of _bazel_codegen 0.2.1 Download _bazel_codegen 0.2.1 archive
0.1.7 Aug 14, 2017 Go to the documentation of _bazel_codegen 0.1.7 Download _bazel_codegen 0.1.7 archive
0.1.6 Apr 26, 2017 Go to the documentation of _bazel_codegen 0.1.6 Download _bazel_codegen 0.1.6 archive
0.1.5 Apr 25, 2017 Go to the documentation of _bazel_codegen 0.1.5 Download _bazel_codegen 0.1.5 archive
0.1.4 Apr 17, 2017 Go to the documentation of _bazel_codegen 0.1.4 Download _bazel_codegen 0.1.4 archive

All 17 versions...

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8


Detected platforms: Flutter, other

Primary library: package:_bazel_codegen/_bazel_codegen.dart with components: io, isolate, build.

Issues and suggestions

Maintain README.md.

Readme should inform others about your project, what it does, and how they can use it.

The description is too short.

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

Maintain an example.

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use _bazel_codegen.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.32 <3.0.0
analyzer >=0.31.2-alpha.1 <0.33.0 0.32.4
args ^1.4.1 1.5.0
bazel_worker ^0.1.2 0.1.12
build >=0.12.7 <0.12.8 0.12.7+3
build_resolvers ^0.2.1 0.2.2
glob ^1.1.0 1.1.7
logging ^0.11.3 0.11.3+2
path ^1.4.1 1.6.2
stack_trace ^1.7.0 1.9.3
Transitive dependencies
async 2.0.8
charcode 1.1.2
cli_util 0.1.3+2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
csslib 0.14.4+1
fixnum 0.10.8
front_end 0.1.4
html 0.13.3+2
kernel 0.3.4
meta 1.1.6
package_config 1.0.5
plugin 0.2.0+3
protobuf 0.9.1
source_span 1.4.1
string_scanner 1.0.3
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
yaml 2.1.15
Dev dependencies
build_runner ^0.9.0
build_test ^0.10.0
build_vm_compilers ^0.1.0
test ^1.0.0
test_descriptor ^1.0.0