-
Notifications
You must be signed in to change notification settings - Fork 144
/
Cargo.toml
32 lines (27 loc) · 1.18 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[package]
name = "tipb"
version = "0.0.1"
edition = "2018"
[features]
default = ["protobuf-codec"]
protobuf-codec = ["protobuf-build/protobuf-codec", "grpcio/protobuf-codec"]
prost-codec = ["prost", "prost-derive", "lazy_static", "protobuf-build/prost-codec", "grpcio/prost-codec"]
[lib]
name = "tipb"
[dependencies]
protobuf = "=2.8.0"
prost = { version = "0.9", optional = true }
prost-derive = { version = "0.9", optional = true }
lazy_static = { version = "1.3", optional = true }
futures = "0.3.5"
# Use wildcard for crates whose version are less than 1.0.0 and are updated
# frequently. So that we do not have to update twice in TiKV and in tipb.
# And we need to keep Cargo.lock in track, so CI can choose a correct version.
#
# See https://doc.rust-lang.org/cargo/reference/resolver.html#semver-compatibility
grpcio = { version = "0.*", default-features = false }
[build-dependencies]
protobuf-build = { version = "0.*", default-features = false }
[patch.crates-io]
protobuf-codegen = { git = "https://github.com/pingcap/rust-protobuf", rev="82b49fea7e696fd647b5aca0a6c6ec944eab3189" }
protobuf = { git = "https://github.com/pingcap/rust-protobuf", rev="82b49fea7e696fd647b5aca0a6c6ec944eab3189" }