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

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

根据官方文档,您提供的错误信息似乎与最新版本的TiKV客户端CPP和Rust客户端之间的兼容性问题有关。具体来说,错误信息表明,raft_proto::prelude::Entry未实现prost::Message trait,而message::encode函数需要该trait。

要解决此问题,您可能需要检查TiKV客户端CPP和Rust客户端之间的兼容性。您可以参考官方文档了解如何检查兼容性以及如何解决兼容性问题

兼容性处理的 文档能给发下链接吗? 感谢

感觉你这个回复,一股chatgpt的味道 :grinning: