#interface #idl #rpc

nightly bin+lib idl-gen

Automatically generate interface definitions from Rust types

1 unstable release

0.1.0 May 31, 2019

#102 in #idl

Apache-2.0

40KB
968 lines

idl-gen

Latest Version docs

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.


lib.rs:

Generates an IDL from Rust types. This library is used by registering IdlGenerator as a rustc callback.

Dependencies

~0.8–1.5MB
~35K SLoC