This repository contains protobuf definition and generated code for TuiHub developers and contributors.
All the .proto
files located at proto folder, it is recommended to import generated code rather than original definition.
Config files located at docs, But document content is generated by Action Bot
Check https://tuihub.github.io/protos
go get github.com/tuihub/protos
npm install https://github.com/tuihub/protos
# Or
yarn add https://github.com/tuihub/protos
cargo add --git https://github.com/tuihub/protos
git clone https://github.com/tuihub/protos && cd protos
# How to install `dotnet`: https://learn.microsoft.com/en-us/dotnet/core/install/
dotnet pack TuiHub.Protos.csproj -c Release
# pubspec.yaml
dependencies:
...
# Add following lines
tuihub_protos:
git: https://github.com/tuihub/protos.git
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.
basic cli tool
compiler
language plugins
- Document: protoc-gen-doc
GO111MODULE=off go get github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
- Go:
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"
- Js/Ts:
npm i
make generate