Changelog-None: rust: fixed compiler warning in the example Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
We wrap emitted messages into a JSON-RPC notification envelope and write them to stdout. We use an indirection over an mpsc channel in order to avoid deadlocks if we emit logs while holding the writer lock on stdout.