cpp/rpc/README.md
To do local RPC, we need to use midl to generate function bindings for our RPC
interface, which is defined in sudo_rpc.idl. midl expects implementations and
callbacks via C functions which we can do in Rust, but there's one problem:
Error handling on the client side occurs with structed exceptions (SEH).
Those cannot be easily replicated in pure Rust and so the client side calls
are all wrapped in C functions.
Changes here go as follows:
sudo_rpc.idlRpcClient.c in the style of the other onesrpc_bindings_client.rsrpc_bindings_server.rsBe careful about the function definitions. At the moment, there are no checks in place that ensure that the Rust code matches the C code or the .idl file.