# mongodb/mongo-rust-driver

The official MongoDB Rust Driver

Repository: https://github.com/mongodb/mongo-rust-driver
Canonical: https://ross.abutalabs.com/products/mongo-rust-driver
Homepage: https://www.mongodb.com/docs/drivers/rust/current/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust, mongodb, mongodb-driver, cargo
Last push: 2026-08-24T18:30:43+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 2683, "days_push": 9, "days_rel": 12, "gap_med": 35, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1518, forks 201 (observed 2026-08-28T04:04:57.396139+00:00)

## What it is
The officially supported MongoDB driver for Rust, providing a fully async API built on tokio plus an optional sync API for interacting with MongoDB deployments. It uses the bson crate for BSON serialization and is distributed via crates.io under the Apache-2.0 license.

## Use cases
- connect to mongodb from rust
- query a mongodb database in a rust application
- store and retrieve bson documents in rust
- use mongodb with tokio async rust
- crud operations on mongodb from rust
- connect rust app to mongodb atlas

## When to choose
- you are building a Rust application that needs to read or write data in MongoDB or Atlas
- you want an officially supported, actively maintained driver with async and sync APIs
- you need BSON document handling with TLS and mongodb+srv support

## When to avoid
- you use a different language than Rust
- you need a driver for a non-MongoDB database
- you are stuck on driver version 1.x, which is end-of-life

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database, serialization
- domain: databases, backend, developer-tools
- platform: rust, windows, cross-platform
- tags: mongodb, bson, async, tokio, official-driver, nosql, linux, macos

## Member repositories
- mongodb/mongo-rust-driver (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:57.396139+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:32:01.825521+00:00, confidence not recorded.
  - readme: https://github.com/mongodb/mongo-rust-driver (fetched 2026-08-28T04:04:57.396139+00:00, sha f274012a46c2)
  - homepage: https://www.mongodb.com/docs/drivers/rust/current/ (fetched 2026-08-29T11:35:28.776016+00:00, sha b70ee90c3a21)
  - site_page: https://www.mongodb.com/docs/tools-and-connectors (fetched 2026-08-29T11:35:28.790443+00:00, sha 7c907d21d3d3)
  - site_page: https://www.mongodb.com/docs/atlas (fetched 2026-08-29T11:35:28.787008+00:00, sha f312e042649e)
  - site_page: https://www.mongodb.com/docs/manual (fetched 2026-08-29T11:35:28.788739+00:00, sha 6a4548d2a71b)
  - site_page: https://www.mongodb.com/docs/drivers (fetched 2026-08-29T11:35:28.792415+00:00, sha 194534c44bc5)
  - site_page: https://www.mongodb.com/docs/atlas/architecture/current/solutions-library (fetched 2026-08-29T11:35:28.804752+00:00, sha 0dfd723aadd5)
  - site_page: https://www.mongodb.com/company/newsroom (fetched 2026-08-29T11:35:28.836659+00:00, sha e3f69e7b7c0c)
  - site_page: https://www.mongodb.com/company/partners (fetched 2026-08-29T11:35:28.848347+00:00, sha 342527daf5e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
