Crates.io | async-nats-wrpc |
lib.rs | async-nats-wrpc |
version | 0.35.1 |
source | src |
created_at | 2024-07-01 18:09:41.221554 |
updated_at | 2024-07-01 18:09:41.221554 |
description | A fork of `async-nats` crate with lower-level async support |
homepage | https://github.com/nats-io/nats.rs |
repository | https://github.com/nats-io/nats.rs |
max_upload_size | |
id | 1288928 |
size | 1,262,482 |
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:
Async Tokio-based NATS client.
Supports:
The API is stable, however it remains on 0.x.x versioning, as async ecosystem is still introducing a lot of ergonomic improvements. Some of our dependencies are also considered
stable, yet versioned <1.0.0, like rustls
, which might introduce breaking changes that can affect our users in some way.
Feature flags are Documented in Cargo.toml
and can be viewed here.
Legacy synchronous client that supports:
This client does not get updates, unless those are security fixes.
Please use the new async-nats
crate.
Please refer each crate docs for API reference and examples.
Additionally Check out NATS by example - An evolving collection of runnable, cross-client reference examples for NATS.
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!