mongodb 1.1.1

The official MongoDB driver for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
use super::TestClient;

#[cfg_attr(feature = "tokio-runtime", tokio::test)]
#[cfg_attr(feature = "async-std-runtime", async_std::test)]
async fn auth_aws() {
    let client = TestClient::new().await;
    let coll = client.database("aws").collection("somecoll");

    coll.find_one(None, None).await.unwrap();
}