Company
Date Published
Author
Sam Rossi
Word count
1120
Language
English
Hacker News points
2

Summary

The official Rust driver for MongoDB is now generally available, marking a significant milestone in its development. The release includes support for MongoDB server versions 3.6 and later, as well as stabilization of the driver's API, including async and sync database APIs and the BSON API. The driver provides out-of-the-box support for popular async runtimes tokio and async-std, along with a sync wrapper that abstracts all async details of the inner API. Users can get started with the driver by creating a new Rust project, adding the mongodb crate to their Cargo.toml, and importing the driver in their code. The driver also supports serialization and deserialization of native Rust types into BSON using serde. To use different runtimes or APIs, users can adjust configuration settings in their Cargo.toml files. The driver is now ready for production usage and invites contributions and feedback from the community.