Introduction
Welcome to the documentation site for the official MongoDB Rust Driver.
You can add the driver to your application to work with MongoDB in Rust.
Import it by adding it to your project's Cargo.toml file or set up a
runnable project by following the Get Started with Rust guide.
Get Started
Learn how to install the driver, establish a connection to MongoDB Atlas, and begin working with data in the Get Started with Rust guide.
Connect to MongoDB
Learn how to create and configure a connection to a MongoDB deployment in the Connect section.
Databases and Collections
Learn how to use the Rust driver to work with MongoDB databases and collections in the Databases and Collections section.
Read and Write Data
Learn how to find, update, and delete data in the CRUD Operations section.
Transform Your Data with Aggregation
Learn how to use the Rust driver to perform aggregation operations in the Aggregation section.
Data Formats
Learn how to work with BSON and how to convert between BSON and Rust types in the Data Formats section.
Optimize Indexes with Queries
Learn how to work with common types of indexes in the Indexes section.
MongoDB Search
Learn how to run MongoDB Search queries by using the Rust driver in the Run a MongoDB Search Query section.
MongoDB Vector Search
Learn how to run MongoDB Vector Search queries by using the Rust driver in the MongoDB Vector Search section.
Monitoring and Logging
Learn how to monitor changes to your application and write them to logs in the Monitoring and Logging section.
Secure Your Data
Learn about ways that you can authenticate your application and encrypt your data in the Security section.
Reference
Find more information about Rust driver version relases, upgrade guides, and syntax quick reference in the Reference section.
API Documentation
For detailed information about types and methods in the MongoDB Rust Driver, see the API documentation.
Connection Troubleshooting
For solutions to some issues you might see when connecting to a MongoDB deployment while using the MongoDB Rust Driver, see Connection Troubleshooting.
Operation Error Handling
To learn about errors you might encounter when using the MongoDB Rust Driver to perform MongoDB operations, see Operation Error Handling.
Issues & Help
Learn how to report bugs, contribute to the driver, and find more resources for asking questions in the Issues & Help section.
Compatibility
To learn about the versions of the MongoDB Server and the Rust language that are compatible with each version of the Rust driver, see Compatibility.
Learn
To ask questions and engage in discussions with fellow developers who use the Rust driver, see the MongoDB communities on Reddit or Stack Overflow.