Anki Forums

Dump Protocol Buffer RPC messages

Communications between Python/Rust are implemented by using Protocol Buffer (rslib/backend.proto). It seems design don’t follow gRPC protocol, so we can’t capture messages by intercept packages?

https://docs.rs/prost-build/0.7.0/prost_build/trait.ServiceGenerator.html

rslib/build/protobuf.rs

pylib/rsbridge/lib.rs

If your goal is to trace the flow of information, you can add some print statements to the code.