qmetrics.net

Mongo Rust Driver

Official async MongoDB client for Rust

DatabasesDesktop/CLI app
Mongo Rust Driver screenshot

The MongoDB Rust driver is a client library for Rust apps, with async tokio APIs, optional sync API, and BSON via the bson crate. Published on crates.io.

Overview

The MongoDB Rust driver is the officially supported client-side library for Rust programs that interact with MongoDB deployments. It uses the bson crate for BSON and exposes a fully async API that requires tokio. A blocking sync API can be enabled through Cargo feature flags, with types under mongodb::sync.

Documentation covers installation via Cargo.toml, connections, databases and collections, CRUD, aggregation, BSON and Rust type conversion, indexes, MongoDB Search, MongoDB Vector Search, monitoring, logging, security, compatibility, and operation error handling. Example integrations are described for Actix, Axum, and Rocket.

Cargo features add DNS resolution for mongodb+srv URIs, AWS authentication, zstd and snappy compression, client-side field level encryption, SOCKS5 proxy support, and other optional behavior. The driver follows semantic versioning; users on older major lines are directed to migration notes when upgrading.

CI exercises the driver on Linux, macOS, and Windows. Guidance warns that dropping driver futures early for timeouts can leave internal state inconsistent and recommends polling driver futures to completion or timing out JoinHandle tasks instead.

Key features

  • Async API with tokio
  • Optional sync API feature
  • BSON crate integration
  • CRUD and aggregation
  • mongodb+srv DNS resolution
  • Snappy and zstd compression features
  • Client-side field level encryption
  • Web framework examples

Use cases

  • Rust services using MongoDB
  • Actix or Axum apps with shared Client
  • Blocking code paths via sync feature
  • Encrypted or compressed MongoDB traffic
  • Search queries from Rust

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

★ 67.9k⟳ yesterdayApache-2.0
Open Source Alternative to:PRTG Network Monitor

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

★ 65.6k⟳ todaySource-available
DatabasesSelf-hostable

etcd

Raft-backed distributed consistent key-value store

etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.

★ 52.7k⟳ 3 days agoApache-2.0
DatabasesSelf-hostable

DBeaver

Universal multi-platform database tool and SQL client

Free desktop client for developers and DBAs with SQL editing, data editing, ER diagrams, exports, and support for hundreds of JDBC or ODBC databases.

★ 52.6k⟳ todayApache-2.0
DatabasesDesktop/CLI app
Open Source Alternative to:DataGripNavicat+2

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

★ 51.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon Redshift