Tart is Twirp for Dart.
Tart includes:
- protoc-gen-tart, a protoc plugin to generate *.pbtwirp.dart files
- Tart the Dart library for the generated *.pbtwirp.dart files
Tart is compatible with Twirp Wire Protocol (v7).
For more information about Twirp please visit its official site: https://twitchtv.github.io/twirp/
- Download binary from release page and place into a folder included in $PATH
or - (with go installed)
go install github.com/syncapod/tart/protoc-gen-tart@latest
Add the following packages to your Dart or Flutter project:
pubspec.yaml example:
dependencies:
http: ^0.13.4
protobuf: ^2.0.1
tart: ^0.3.0
This has only been built and tested on a Linux-based OS with Go version 1.17 and Dart 2.13 For specific versions please check out pubspec.yaml and go.mod
protoc-gen-tart
Tart
For more information on dependencies please refer to tart/pubspec.yaml and protoc-gen-tart/go.mod
Please refer to protoc-gen-tart README.md
Please create an issue for any errors or help executing the protoc plugin or using tart library / generated code.
This project is licensed under the Apache 2.0 License