Crates.io | nightly-async-nats |
lib.rs | nightly-async-nats |
version | 0.27.1 |
source | src |
created_at | 2023-02-01 15:41:39.375385 |
updated_at | 2023-02-01 15:41:39.375385 |
description | A async Rust NATS client |
homepage | https://github.com/nats-io/nats.rs |
repository | https://github.com/nats-io/nats.rs |
max_upload_size | |
id | 773865 |
size | 835,178 |
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:
New async Tokio-based NATS client.
Supports:
Any feedback related to this client is welcomed.
Note: async client is still <1.0.0 version and will introduce breaking changes.
Legacy synchronous client that supports:
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!