Skip to content

Releases: zslayton/stomp-rs

v0.7.0

08 Feb 18:54
Compare
Choose a tag to compare
v0.7.0 Pre-release
Pre-release
  • Created FrameHandler trait to make error and receipt handling more ergonomic. Closures and custom structs are now supported.
  • A per-message ReceiptHandler mechanism was added, allowing the developer to react statefully to the server's confirmation that a message was processed.
  • SUBSCRIBE frames can now request a receipt by specifying a ReceiptHandler via the SubscriptionBuilder.

v0.6.0

05 Feb 18:49
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release
  • Builder APIs for Sessions, Subscriptions and Messages. Allows for setting:
    • Custom headers
    • Suppressed headers
    • Heartbeat parameters
    • Credentials
    • Ack mode
  • Tracking upstream change to the parse() method's return value

v0.5.2

01 Feb 01:29
Compare
Choose a tag to compare
v0.5.2 Pre-release
Pre-release
  • Rearranged example code following this upstream change.
  • Simplified implementations of MessageHandler and ToMessageHandler
  • Added groundwork for builder APIs
  • Added examples directory
  • Transaction::abort and Transaction::commit now consume self

v0.5.1

30 Jan 04:04
Compare
Choose a tag to compare
v0.5.1 Pre-release
Pre-release

Minor cleanup, tracking upstream changes.

  • Added header_list! macro variant to simplify encoding Headers. Invoked as header_list![ "key1" => "value1", "key2" => "value2", ... ]
  • Modified Session::send and Session::receive to return an IoResult.
  • std::io renamed to std::old_io as Rust developers refactor std::io.
  • #[allow(unstable)] dropped in favor of per-feature allow statements

v0.5.0

27 Jan 03:53
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release
  • Introduced the ToMessageHandler trait, allowing the Session::subscribe method to take any of the following as its callback:
    • Fn(&Frame) -> AckOrNack
    • FnMut(&Frame) -> AckOrNack
    • Sender<Frame>
    • Custom implementation

v0.4.0

25 Jan 05:51
Compare
Choose a tag to compare
v0.4.0 Pre-release
Pre-release
  • The subscription::MessageHandler trait replaced bare functions (fn) in subscriptions to allow state to be tracked across invocations.
  • @fribeiro1 added a convenience macro for creating a set of Headers (header_list!)
  • Updates to now-deprecated method calls

v0.3.7

11 Jan 04:27
Compare
Choose a tag to compare
v0.3.7 Pre-release
Pre-release

Tracking upstream changes:

  • isize/usize
  • Threads are already detached by default following spawn()
  • macro_use pragma required for logging crate

v0.3.6

06 Jan 02:35
Compare
Choose a tag to compare
v0.3.6 Pre-release
Pre-release

Tracked upstream changes:

  • from_str replaced with parse
  • from_utf8 returns a Result instead of an Option
  • std::slice::Items became collections::Iter
  • deriving renamed to derive

v0.3.4

21 Dec 16:26
Compare
Choose a tag to compare
v0.3.4 Pre-release
Pre-release
  • proc purged
  • Copy opted in

v0.3.3

23 Nov 18:52
Compare
Choose a tag to compare
v0.3.3 Pre-release
Pre-release

Minor updates to Cargo.toml in order to publish to crates.io.