User Guide

Setup

To install the diplomat CLI tool, run

$ cargo install diplomat-tool

You can then add diplomat as a dependency to your project like so:

diplomat = "0.5.0"
diplomat-runtime = "0.5.0"

It is recommended to create a separate crate for the FFI interface. Diplomat will only read the contents of specially tagged modules so it is possible to mix Diplomat code with normal Rust code, but it is prefereable to minimize this since proc macros can make debugging hard.