
Usage
Document
Config files located at docs, But document content is generated by Action Bot
Check https://tuihub.github.io/Protos
Go
go get github.com/tuihub/protos
Js/Ts
npm install https://github.com/TuiHub/Protos
# Or
yarn add https://github.com/TuiHub/Protos
Rust
cargo add --git https://github.com/TuiHub/Protos
CSharp
- Check Package page for pre-packed file
- Or pack locally
git clone https://github.com/TuiHub/Protos && cd Protos
# How to install `nuget`: https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools
nuget pack TuiHub.Protos.nuspec
Dart
# pubspec.yaml
dependencies:
...
# Add following lines
tuihub_protos:
git: https://github.com/TuiHub/Protos.git
Build Locally
Not Recommended. You can focus on proto files and just use buf lint
to make sure proto files are correct. Action Bot will deal with the rest.
Install dependency
basic cli tool
compiler
language plugins
GO111MODULE=off go get github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
GO111MODULE=off go get github.com/gogo/protobuf/protoc-gen-gofast
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
export PATH="$PATH:$(go env GOPATH)/bin"
npm i
Build
make generate