A compiler plugin that generates JSON descriptions of an RPC interface from Rust types. You can see an example of using idl-gen in the idl_gen test.
idl-gen
idl_gen