omnibuf 0.1.0
omnibuf: ^0.1.0 copied to clipboard
OmniBuf v0.1 binary wire format for Dart: Prefix-Varint codec, 16 explicit wire types, Field #0 self-describing metadata, lazy Opaque views with in-place wire splicing, package:protobuf integration, d [...]
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate omnibufUse it
The package has the following executables:
$ protoc-gen-omnibuf-dart
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add omnibufWith Flutter:
$ flutter pub add omnibufThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
omnibuf: ^0.1.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:omnibuf/omnibuf.dart';