https://github.com/tidbcloud/kvproto
https://github.com/tidbcloud/kvproto
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tidbcloud/kvproto
- Owner: tidbcloud
- License: apache-2.0
- Created: 2022-10-04T01:15:28.000Z (over 3 years ago)
- Default Branch: release-6.2-dev-tier
- Last Pushed: 2025-02-24T07:44:12.000Z (over 1 year ago)
- Last Synced: 2025-03-20T10:00:03.737Z (about 1 year ago)
- Language: CMake
- Size: 19.1 MB
- Stars: 0
- Watchers: 10
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kvproto
Protocol buffer files for TiKV
# Usage
+ Write your own protocol file in proto folder.
+ If you need to update raft-rs, please download the proto file
respectively and overwrite the one in include folder.
+ Run `make` to generate go and rust code.
We generate all go codes in pkg folder and rust in src folder.
+ Update the dependent projects.
# Dependencies
* Rust
* Go
* Protoc 3.8.0
# Docker image
The easiest way to compile the protobufs is to use docker.
```
./scripts/docker-build.sh # build the docker image once
./scripts/docker-run.sh make go
```
# Build locally
There are many dependencies to be installed, please refer to the relevant scripts in [workflow](.github/workflows) to set them up.