The latest version of the TiKV client C++ version cannot depend on the latest version of the Rust client

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 最新版本的tikv client cpp版本无法依赖最新版本的rust-client

| username: TiDBer_NbbQobC1

Compiling grpcio v0.10.4
error[E0277]: the trait bound raft_proto::prelude::Entry: prost::Message is not satisfied
→ /data00/code/community/pingcap/tikv_client-cpp/target/debug/build/tikv-client-proto-4a5c0e59aeb593bb/out/protos/raft_cmdpb.rs:273:28
|
273 | #[derive(Clone, PartialEq, ::prost::Message)]
| ^^^^^^^^^^^^^^^^ the trait prost::Message is not implemented for raft_proto::prelude::Entry
|
= help: the following other types implement trait prost::Message:
()
Admin
AdminRequest
AdminResponse
AllocIdRequest
AllocIdResponse
AlreadyExist
AskBatchSplitRequest
and 492 others
note: required by a bound in message::encode
→ /root/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/prost-0.9.0/src/encoding.rs:1043:12
|
1043 | M: Message,
| ^^^^^^^ required by this bound in encode
= note: this error originates in the derive macro ::prost::Message (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound raft_proto::prelude::Entry: prost::Message is not satisfied
→ /data00/code/community/pingcap/tikv_client-cpp/target/debug/build/tikv-client-proto-4a5c0e59aeb593bb/out/protos/raft_cmdpb.rs:273:28

| username: Billmay表妹 | Original post link

According to the official documentation, the error message you provided seems to be related to a compatibility issue between the latest versions of the TiKV client CPP and the Rust client. Specifically, the error message indicates that raft_proto::prelude::Entry does not implement the prost::Message trait, which is required by the message::encode function.

To resolve this issue, you may need to check the compatibility between the TiKV client CPP and the Rust client. You can refer to the official documentation to learn how to check compatibility and how to resolve compatibility issues.

| username: TiDBer_NbbQobC1 | Original post link

Could you please send the link to the compatibility handling documentation? Thanks.

| username: TiDBer_jYQINSnf | Original post link

I feel like your reply has a hint of ChatGPT :grinning: