# nats-io/nats.rs

Rust client for NATS, the cloud native messaging system.

Repository: https://github.com/nats-io/nats.rs
Canonical: https://ross.abutalabs.com/products/natsrs
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: cloud-native, messaging, messaging-library, microservices, nats, rust
Last push: 2026-07-21T17:07:18+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 81, longevity 100
- inputs: {"age_days": 2382, "days_push": 43, "days_rel": 44, "gap_med": 30.5, "n_releases_24m": 19}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1536, forks 272 (observed 2026-08-28T04:04:59.992349+00:00)

## What it is
async-nats is a Rust client library for the NATS cloud-native messaging system, built on Tokio. It supports Core NATS, JetStream, Key-Value and Object stores, and the Service API.

## Use cases
- connect a Rust service to NATS for pub/sub messaging
- use JetStream durable streams from Rust
- build microservices communicating over NATS request/reply
- use NATS key-value store for distributed state
- store and retrieve blobs via NATS Object Store
- implement NATS microservices with the Service API

## When to choose
- you're building Rust services on NATS or JetStream
- you need an async Tokio-based messaging client
- you want idiomatic Rust APIs with compile-time connection options

## When to avoid
- you need a synchronous/blocking client
- you're not using NATS as your messaging system
- you need a 1.0-guaranteed stable API (still 0.x versioning)

## Facets
- artifact type: library
- maturity: active
- function: message-queue, rpc, streaming
- domain: microservices, cloud-computing
- platform: rust, cross-platform
- tags: nats, jetstream, async, tokio, pub-sub, key-value-store, object-store, messaging

## Member repositories
- nats-io/nats.rs (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:59.992349+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:31:05.941816+00:00, confidence not recorded.
  - readme: https://github.com/nats-io/nats.rs (fetched 2026-08-28T04:04:59.992349+00:00, sha 733b8b65d90b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
