Choose between async-nats and nats clients
mainThe NATS Rust ecosystem provides two client libraries, but you should almost always use async-nats.
async-nats(Recommended): An asynchronous, Tokio-based client that provides direct API access to Core NATS, JetStream, Key Value Store, Object Store, and the Service API. It is designed to be lightweight, performance-oriented, and maintains API parity with official NATS clients in other languages.nats(Deprecated): A legacy client that only receives critical security fixes. Do not use this for new projects.
Use async-nats for all modern NATS development in Rust.