Skip to content

Releases: nats-io/nats.rs

0.8.3

06 Nov 22:42
Compare
Choose a tag to compare

New Features

  • Add Options::client_cert().

0.8.1

20 Oct 21:29
Compare
Choose a tag to compare

Improvements

  • Remove async-dup dependency.
  • Update dependencies, notably nkeys to v0.0.11.

Bug Fixes

  • Fix a bug due to which TLS authentication was not
    working.
  • Shutdown the client thread when Connection is dropped.

0.8.0

15 Sep 15:15
bd10230
Compare
Choose a tag to compare

New Features

  • Add asynk::Message::respond().
  • Add Options::with_nkey().

Improvements

  • Update the smol dependency.

Breaking Changes

  • Remove crossbeam-channel from the public API.

0.7.4

01 Sep 18:23
Compare
Choose a tag to compare

Improvements

  • Remove the MutexGuard held across await points
    inside cleanup_subscriptions() to allow futures
    returned by async methods to implement Send.

0.7.3

12 Aug 12:07
Compare
Choose a tag to compare

New Features

  • Expose the asynk module with the async client API.

0.7.2

29 Jul 16:48
0ff795f
Compare
Choose a tag to compare

Bug Fixes

  • Implement Subscription::close and
    Subscription::unsubscribe correctly, which would
    previously do nothing.

0.7.1

21 Jul 19:03
205236f
Compare
Choose a tag to compare

Bug Fixes

  • Fix a deadlock in Subscription when concurently
    receiving the next message and draining.

Misc

  • Add --auth-token flag to the nats-box example.

0.7.0

13 Jul 10:21
cbdf54d
Compare
Choose a tag to compare

New Features

  • Support has been added for NATS Headers
    via the Connection::publish_with_reply_or_headers
    method.

Breaking Changes

  • The underlying TLS implementation has been switched
    from native-tls to rustls. The previously exported
    TLS functionality has been removed, and now you can
    supply certificates with the
    Options::add_root_certificate method.

0.6

29 Jun 18:34
5af548e
Compare
Choose a tag to compare
0.6

0.6.0

New Features

  • An experimental async Connection is now available
    to adventurous explorers by calling
    Options::connect_async.

Breaking Changes

  • ConnectionOptions has been renamed Options.
  • The minimum supported Rust version (MSRV) is now
    1.40.0.

0.3

13 Apr 12:39
023d4b2
Compare
Choose a tag to compare
0.3

New Features

  • #16 Implement reconnection logic.
  • #16 Buffer outbound data when in a disconnected state.
  • #16 Learn about new servers using the received INFO block.
  • #16 Callback functions may be provided via the new
    Options::set_disconnect_callback and
    Options::set_reconnect_callback which will be executed
    when the connection to a server has been terminated
    or when a new connection has been established afterward.

Breaking Changes

  • #11 Connection::new has been renamed Options::new.
  • #13 The various iterators have been replaced with concrete
    implementations: Iter, IntoIter, TimeoutIter which
    ensure that the backing Subscription is not closed
    while they are in use.