43 releases (21 breaking)

new 0.29.0 Mar 24, 2023
0.27.1 Feb 2, 2023
0.25.1 Dec 23, 2022
0.24.0 Nov 26, 2022
0.0.1 Jun 17, 2020

#58 in Network programming

Download history 4139/week @ 2022-12-03 4697/week @ 2022-12-10 3938/week @ 2022-12-17 1504/week @ 2022-12-24 2902/week @ 2022-12-31 3371/week @ 2023-01-07 3775/week @ 2023-01-14 3454/week @ 2023-01-21 3201/week @ 2023-01-28 3003/week @ 2023-02-04 2898/week @ 2023-02-11 3566/week @ 2023-02-18 4594/week @ 2023-02-25 4026/week @ 2023-03-04 2817/week @ 2023-03-11 2836/week @ 2023-03-18

14,783 downloads per month
Used in 38 crates (12 directly)



A Rust client for the NATS messaging system.


Rust may be one of the most interesting new languages the NATS ecosystem has seen. We believe this client will have a large impact on NATS, distributed systems, and embedded and IoT environments. With Rust, we wanted to be as idiomatic as we could be and lean into the strengths of the language. We moved many things that would have been runtime checks and errors to the compiler, most notably options on connections, and having subscriptions generate multiple styles of iterators since iterators are first-class citizens in Rust. We also wanted to be aligned with the NATS philosophy of simple, secure, and fast!


There are two clients available in two separate crates:


License Apache 2 Crates.io Documentation Build Status

New async Tokio-based NATS client.


  • Core NATS
  • JetStream API
  • JetStream Management API
  • Key Value Store
  • Object Store
  • Service API

Any feedback related to this client is welcomed.

Note: async client is still <1.0.0 version and will introduce breaking changes.


License Apache 2 Crates.io Documentation Build Status

Legacy synchronous client that supports:

  • Core NATS
  • JetStream API
  • JetStream Management API
  • Key Value Store
  • Object Store

This client will be deprecated soon, when async-nats reaches version 1.0, with a sync wrapper around it.


Please refer each crate docs for API reference and examples.


We encourage all folks in the NATS and Rust ecosystems to help us improve this library. Please open issues, submit PRs, etc. We're available in the rust channel on the NATS slack as well!


~551K SLoC