escouade-plugin-protocol
The protocol Escouade speaks to its plugins: JSON-RPC 2.0, one message a line. This crate holds what both sides share: the version, the methods, the messages of the handshake and of the extension points.
A plugin that answers at once, a state machine, needs nothing else, and the same source compiles in process and for
wasm32-wasip1:
use ;
use ;
module!;
turn also gives what std cannot give a module: turn::instance_id() in place of std::process::id(), and
turn::read_file() in place of std::fs.
A plugin whose calls wait on the network will rather take escouade-plugin-kit.
The reference of the plugins: https://escouade.dev/en/docs/plugins/api. The code is in Escouade's repository. This crate is under the MIT licence; the app is under GPL-3.0-or-later.