Crate picopub

Crate picopub 

Source
Expand description

PicoPub is a minimal publish/subscribe (pub/sub) message dispatcher.

It supports both blocking (synchronous) and Tokio async runtimes via Cargo features. The same API surface is exposed, with async variants enabled when the tokio feature is active.

§Features

  • blocking: Uses std::sync::Mutex and blocking subscribers.
  • tokio: Uses tokio::sync::Mutex and async subscribers.

Only one of these features should be enabled at a time.

Structs§

PicoPub
Async variant of PicoPub for use with Tokio.