capnpc_dart_builder 0.2.0
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_builderThis 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.0Alternatively, 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';