Name Description Size Coverage
callback.rs 2168 -
lib.rs The [Diplomat](https://rust-diplomat.github.io/diplomat/) runtime crate. This crate provides Diplomat-specific types for crates writing `#[diplomat::bridge]` modules. Include this in any crate that also depends on `diplomat`, since `#[diplomat::bridge]` will generate code that relies on types from here. This crate contains a fair number of `DiplomatFoo` types. Some, like [`DiplomatOption`], are FFI-safe versions of Rust types that can be put in a struct and passed safely over FFI. Others, like [`DiplomatChar`], are simple type aliases that signal to the Diplomat tool that particular semantics are desired on the C++ side. # Features The `log` feature enables logging support, currently enabled via the wasm-only `diplomat_init()`. The `jvm-callback-support` feature should be enabled if building Diplomat for use in the JVM, for a Diplomat-based library that uses callbacks. 3960 -
result.rs 3323 -
rust_interop.rs Types for interfacing with Diplomat FFI APIs from Rust. By and large, Diplomat helps you produce a Rust-written library that can be called from other languages. You write the library in Rust, but interact with the Diplomat-wrapped library in a non-Rust language. However, either for debugging purposes, or for extending the library in custom ways, you may find yourself wanting to work with the Diplomat-wrapped library from Rust. This module contains utilities for doing that. 2735 -
slices.rs 9595 -
wasm_glue.rs Wasm-specific glue code This is a private module 2836 -
write.rs 10853 -