Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate mongodb to v3 #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 25, 2024

This PR contains the following updates:

Package Type Update Change
mongodb (source) dependencies major 2.8.2 -> 3.0.0

Release Notes

mongodb/mongo-rust-driver (mongodb)

v3.0.1

Compare Source

The MongoDB Rust driver team is pleased to announce the v3.0.1 release of the mongodb crate, now available for download from crates.io.

This release fixes two bugs:

  • Aggregations with both explicit sessions and custom types wouldn't compile, and
  • Collection::watch didn't use the Collection's type parameter

Full Release Notes

Bugfixes
  • RUST-1986 Use Collection type parameter for change streams (#​1162)
  • RUST-1982 Fix aggregate with_type with explicit session (#​1155)

v3.0.0

Compare Source

The MongoDB Rust driver team is pleased to announce the v3.0.0 release of the mongodb crate, now available for download from crates.io.

Highlighted Changes

Breaking Changes

3.0 introduces a wide variety of improvements that required backwards-incompatible API changes; in most cases these changes should require only minor updates in application code.

Most notably:

  • Fluent API: Async methods that accepted options have been updated to allow the individual options to be given directly in line with the call to reduce required boilerplate.
  • Events: 3.0 introduces the EventHandler type, which can be constructed from a callback, async callback, or an async channel sender.
  • Async Runtime: 3.0 only supports tokio; support for async-std has been discontinued.

For detailed information on breaking changes and examples of migrating from 2.x to 3.0, please see the migration guide.

Bulk Write

The Rust driver now implements the new Bulk Write specification, which supports performing mixed write operations against multiple namespaces in a minimized number of round-trips to the server. This feature is only available for early testing using MongoDB 8.0 release candidate binaries. This feature is not recommended for use in production until the stable release of MongoDB 8.0.

OIDC Authentication

The Rust driver can now authenticate using an OpenID Connect access token, including support for both the machine and human authentication flows, and automatic token acquisition for Azure and GCP.

Included Changes

Below are a selected list of other changes with user impact; for a full list of changes see this GitHub query.

Breaking Changes
  • RUST-1810 Clean up concern helpers (#​1011)
  • RUST-1603 Support the authorized_collections option (#​1033)
  • RUST-1876 Require T: Send + Sync for Collection (#​1043)
  • RUST-1306 Move Compression enum behind compression feature flags (#​1055)
  • RUST-1563 Make ReadPreferenceOptions optional (#​1059)
  • RUST-1208 Future-proof features (#​1062)
  • RUST-1764 Drop human_readable options in favor of HumanReadable (#​1064)
  • RUST-1695 Use consistent defaults for TypedBuilder (#​1072)
  • RUST-1364 Collapse comment and comment_bson (#​1070)
New Features
  • RUST-1652 Add a find_one method to GridFsBucket (#​1015)
  • RUST-1856 expose Database::client (#​1035) (thanks dgrijalva!)
  • RUST-1830 Support KMIP delegated protocol (#​1115)
Improvements
  • chore: bump socket2 to 0.5 (#​1020) (thanks attila-lin!)
  • chore: move lazy_static to once_cell (#​1022) (thanks attila-lin!)
  • RUST-1631 Always use polling monitoring when running in a FaaS environment (#​1030)
Bugfixes
  • RUST-1881 Check integer conversions (#​1045)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from auguwu as a code owner June 25, 2024 21:23
@renovate renovate bot force-pushed the renovate/mongodb-3.x branch 10 times, most recently from 38a8159 to 7737332 Compare July 7, 2024 22:27
@renovate renovate bot force-pushed the renovate/mongodb-3.x branch 3 times, most recently from 0ab4ef1 to 4b47e27 Compare July 13, 2024 02:10
@renovate renovate bot force-pushed the renovate/mongodb-3.x branch 3 times, most recently from 8f662e0 to 4aba33d Compare July 23, 2024 04:34
@renovate renovate bot force-pushed the renovate/mongodb-3.x branch 7 times, most recently from 0903b1e to b1aaf44 Compare August 5, 2024 01:54
@renovate renovate bot force-pushed the renovate/mongodb-3.x branch 6 times, most recently from be6defd to 1915040 Compare August 12, 2024 00:09
@renovate renovate bot force-pushed the renovate/mongodb-3.x branch 4 times, most recently from 8a2040a to 620b54b Compare August 21, 2024 00:08
@renovate renovate bot force-pushed the renovate/mongodb-3.x branch 4 times, most recently from 14a9083 to 09cc840 Compare August 24, 2024 10:06
Copy link
Contributor Author

renovate bot commented Sep 16, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path crates/remi/Cargo.toml --package [email protected] --precise 3.1.0
    Updating crates.io index
error: failed to select a version for the requirement `mongodb = "^2.8.2"`
candidate versions found which didn't match: 3.1.0
location searched: crates.io index
required by package `remi-gridfs v0.8.0`
    ... which satisfies dependency `remi-gridfs = "^0.8.0"` (locked to 0.8.0) of package `azalia-remi v0.1.0 (/tmp/renovate/repos/github/Noelware/azalia/crates/remi)`
    ... which satisfies path dependency `azalia-remi` (locked to 0.1.0) of package `azalia v0.1.0 (/tmp/renovate/repos/github/Noelware/azalia/crates/azalia)`

@renovate renovate bot force-pushed the renovate/mongodb-3.x branch 6 times, most recently from feabc35 to a159ec1 Compare September 18, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants