coocood / tipb

TiDB protobuf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tipb

TiDB protobuf files

Usage

install protobuf compiler.

Write your own protocol file in proto folder.

Make sure the gogo protobuf and protoc-gen-gofast is installed and checked out to v0.5

  • go get -u github.com/gogo/protobuf/protoc-gen-gofast
  • cd $GOPATH/src/github.com/gogo/protobuf
  • git checkout v0.5
  • rm $GOPATH/bin/protoc-gen-gofast
  • go get github.com/gogo/protobuf/protoc-gen-gofast

Generate go and rust code.

We generate all go code in pkg folder and rust in src folder.

  • make

Update the dependent projects.

About

TiDB protobuf

License:Apache License 2.0


Languages

Language:Rust 99.3%Language:Shell 0.4%Language:Go 0.3%Language:Makefile 0.0%