14 unstable releases (3 breaking)

✓ Uses Rust 2018 edition

0.3.4 May 22, 2020
0.3.3 May 5, 2020
0.3.1 Apr 30, 2020
0.2.5 Apr 30, 2020
0.0.1 Apr 28, 2020
Download history 42/week @ 2020-04-23 107/week @ 2020-04-30 10/week @ 2020-05-07 5/week @ 2020-05-14 43/week @ 2020-05-21 59/week @ 2020-05-28 43/week @ 2020-06-04 2/week @ 2020-06-11 14/week @ 2020-06-18 31/week @ 2020-07-02

56 downloads per month
Used in rustwebact

MIT/Apache

6KB
93 lines

jsmx

PubSub Message Passing for Rust with JSON

Motivation

JSMX is intended for use as a simple message exchange, provided that all messaging is serialized as json objects. Allowed these restrictions, the message exchange shall obviate the creation, management, and destruction of necessary mutexes and channels.

Vocabulary

Message Exchange: a hub for incoming and outgoing messages

Shared Exchange: a thread-safe hub for incoming and outgoing messages

Message: a json object

Inbox: a subscription to a message exchange feed

selector prefix: the first part of the inbox feed address

selector suffix: the second part of the inbox feed address

callback: a function that will be called when a message is routed to this endpoint

Outbox: a feed where related messages can be published

descriptor prefix: the first part of the outbox feed route

descriptor suffix: the second part of the outbox feed route

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in jsmx by you, shall be dual licensed under the MIT and Apache 2.0 license without any additional terms or conditions.

Dependencies

~520–770KB
~16K SLoC