hammer-plugin-kit 0.6.0

Write plugins for the Hammer editor in Rust: Hammer's imports, typed operations, and the action and text check types.
Documentation

hammer-plugin-kit

The Rust kit for writing plugins for Hammer, the novel writing app. A plugin is a WebAssembly module that Hammer runs in a sandbox; this crate gives it Hammer's imports, a typed function for each of Hammer's operations (hammer::ops), and the types for actions and text checks.

[lib]
crate-type = ["cdylib"]

[dependencies]
hammer-plugin-kit = "0.6"
use hammer::ops;

let scene = ops::scene::read(&project, id)?;

Build for wasm32-unknown-unknown. The Rust template is a working plugin to start from, and the SDK has the recipes and the Kotlin and C kits.