Description
async-nats is the core Rust client for NATS, the cloud native messaging system. It is a Tokio based async client that supports core NATS messaging, the JetStream API and its management API, the Key Value Store, the Object Store and the Service API. The README explains the design choice: Rust's compiler takes over many checks that other clients do at run time, such as options on connections, and subscriptions can be used as several styles of iterator, since iterators are first class in Rust. The client aims to keep the same API shape as the official NATS clients for other languages, so a feature looks similar wherever you use it. The API is stable but still uses 0.x versioning while the async ecosystem keeps improving. The repository also describes a split between the core client, which is kept small and conservative, and Orbit, a set of higher level Rust crates with their own versioning for more opinionated abstractions. An older, deprecated client named nats is also in the repository. The README warns that Cargo unifies features across a dependency graph, so enabling a feature such as chrono in one crate can affect every consumer of async-nats. The project is open source on GitHub under nats-io.…
Highlights
- Core NATS and JetStream support
- Key Value Store and Object Store
- Service API and JetStream management API
- Tokio based async client
- API kept in parity with other official NATS clients
Ratings & Reviews
No ratings yet
Be the first to rate Nats.rs.
People also visit
Nats.rs FAQ
What is async-nats?
The core Rust client for NATS, a messaging system, built on Tokio with support for core NATS and JetStream.
Which NATS features are covered?
Core NATS, the JetStream API and management API, the Key Value Store, the Object Store and the Service API.
Is the API stable?
The README says the API is stable, but it stays on 0.x versions while the async ecosystem improves.
Is there an older client?
Yes. The README lists an older client named nats, which is deprecated.
What is Orbit?
A separate set of Rust crates with higher level, opinionated abstractions built on top of the core client.
Is it free?
Yes. The project is open source and the code is on GitHub.
What are the best Nats.rs alternatives?
Popular alternatives to Nats.rs include Nats.java, Nats.net and Nats Server. See all Nats.rs alternatives

