capnpc_dart_builder 0.2.0 copy "capnpc_dart_builder: ^0.2.0" to clipboard
capnpc_dart_builder: ^0.2.0 copied to clipboard

build_runner integration for capnpc-dart. Add as a dev_dependency to generate .capnp.dart files from .capnp schema files via `dart run build_runner build`, instead of invoking `capnp compile` yourself [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add capnpc_dart_builder

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

dependencies:
  capnpc_dart_builder: ^0.2.0

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:capnpc_dart_builder/capnpc_dart_builder.dart';
0
likes
130
points
117
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

build_runner integration for capnpc-dart. Add as a dev_dependency to generate .capnp.dart files from .capnp schema files via `dart run build_runner build`, instead of invoking `capnp compile` yourself. Requires the official `capnp` CLI to be installed separately — this package does not parse .capnp syntax itself, it only shells out to `capnp compile -o-` and hands the result to capnpc_dart.

Repository (GitHub)
View/report issues
Contributing

Topics

#capnproto #code-generation #build-runner

License

MIT (license)

Dependencies

build, capnpc_dart, path

More

Packages that depend on capnpc_dart_builder