#plugin #interface #compiler-plugin #idl #rpc-service #rpc #generate

nightly bin+lib mantle-build

Rust compiler plugin that builds Mantle services

3 releases

0.2.2 Jul 6, 2019
0.2.1 Jun 27, 2019
0.2.0 Jun 25, 2019

#33 in #rpc-service

Apache-2.0

92KB
2.5K SLoC

mantle-build

Latest Version docs

mantle-build is a compiler plugin that adds boilerplate code for calling and deploying mantle services and generates a JSON (or protobuf) description of the RPC interface. You can see an example of using mantle-build in the mantle_build test.


lib.rs:

mantle-build

A Rust compiler plugin that turns a RPC service definition into a program that runs in a blockchain-like environment. Specifically, mantle-build generates boilerplate RPC code for and generates an interface definition for the service.

This library is used by registering BuildPlugin as a rustc callback.

Dependencies

~6–14MB
~176K SLoC