The MongoDB Rust driver team is pleased to announce the v2.8.0 release of the mongodb crate, now available for download from crates.io.
Highlighted Changes
Search Index Management Helpers
The Collection type now has the create_search_index, create_search_indexes, update_search_index, drop_search_index, and list_search_indexes methods, allowing comprehensive management of search indexes from client code.
Reliability Improvements
More error types will be automatically retried, and retries will avoid mongos backends with network connectivity issues. Also note that the documentation for with_transaction has been updated to clarify error handling requirements to avoid a deadlock.
Included Changes
Below are a selected list of changes with user impact; for a full list of changes see this GitHub query.
New Features
RUST-1703 Add docker and kubernetes metrics (#940)
RUST-1701 Log when CosmosDB or DocumentDB are detected (#958)
RUST-1707 Add durations to connection pool events (#976)
RUST-933 Add support for the srvMaxHosts option (#977)
RUST-1667 Add search index management helpers (#989)
Improvements
RUST-877 Delay replacement document serialization until Operation::build (#942)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps mongodb from 2.6.0 to 2.8.0.
Release notes
Sourced from mongodb's releases.
... (truncated)
Commits
5bc56ca
release v2.8.0 (#999)bda4509
RUST-1788 Update docs for with_transaction to avoid infinite loop (#998)e87f4dd
RUST-1785 Make ExceededTimeLimit a read-retryable error (#997)8b22217
RUST-1786 Make ReadConcernMajorityNotAvailableYet a retryable read error (#996)a2e277e
RUST-1806 Fix in use encryption tests (#995)a30274b
RUST-470 Increase replSetStepDown timeout (#994)00a03ab
RUST-1796 Test against new serverless proxy (#993)e02bb47
RUST-1804 Replaceasync_once
withtokio::sync::OnceCell
(#992)3172142
RUST-1684 End-to-end tests for the search index management helpers (#991)c4de516
RUST-1667 Add search index management helpers (#989)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show