Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /

MongoDB Rust Driver

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.

Learn how to install the driver, establish a connection to MongoDB Atlas, and begin working with data in the Get Started with Rust guide.

Learn how to create and configure a connection to a MongoDB deployment in the Connect section.

Learn how to use the Rust driver to work with MongoDB databases and collections in the Databases and Collections section.

Learn how to find, update, and delete data in the CRUD Operations section.

Learn how to use the Rust driver to perform aggregation operations in the Aggregation section.

Learn how to work with BSON and how to convert between BSON and Rust types in the Data Formats section.

Learn how to work with common types of indexes in the Indexes section.

Learn how to run MongoDB Search queries by using the Rust driver in the Run a MongoDB Search Query section.

Learn how to run MongoDB Vector Search queries by using the Rust driver in the MongoDB Vector Search section.

Learn how to monitor changes to your application and write them to logs in the Monitoring and Logging section.

Learn about ways that you can authenticate your application and encrypt your data in the Security section.

Find more information about Rust driver version relases, upgrade guides, and syntax quick reference in the Reference section.

For detailed information about types and methods in the MongoDB Rust Driver, see the API documentation.

For solutions to some issues you might see when connecting to a MongoDB deployment while using the MongoDB Rust Driver, see Connection Troubleshooting.

To learn about errors you might encounter when using the MongoDB Rust Driver to perform MongoDB operations, see Operation Error Handling.

Learn how to report bugs, contribute to the driver, and find more resources for asking questions in the Issues & Help section.

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.

To ask questions and engage in discussions with fellow developers who use the Rust driver, see the MongoDB communities on Reddit or Stack Overflow.

Next

Get Started