{"id":62435,"library":"nats","title":"NATS","description":"A Rust NATS client (deprecated — use async-nats instead).","status":"deprecated","version":"0.26.0","language":"rust","source_language":null,"source_url":"https://github.com/nats-io/nats.rs","tags":["nats","messaging","deprecated","async"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nnats = \"0.26.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add nats","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Connection","correct":"use nats::Connection;"}],"quickstart":{"code":"use nats::Connection;\n\nlet nc = Connection::new(\"nats://localhost:4222\").unwrap();\nnc.publish(\"subject\", b\"data\").unwrap();","lang":"rust","description":"Connects to a NATS server and publishes a message."},"warnings":[{"fix":"Replace `nats` with `async-nats` in your Cargo.toml and update imports.","message":"This crate is deprecated; use `async-nats` instead.","severity":"breaking","affected_versions":">=0.26.0"}],"env_vars":null,"search_vec":"'async':9,15 'async-nat':8 'client':5 'deprec':6,14 'instead':11 'messag':13 'nat':1,4,10,12 'rust':3 'use':7","created_at":"2026-06-17T16:30:12.373075+00:00","updated_at":"2026-06-17T16:30:12.373075+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/nats-io/nats.rs","github":"https://github.com/nats-io/nats.rs","docs":"https://docs.rs/nats/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["messaging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}