Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Update Rust crate mongodb to 2.7.0 #9

Merged
merged 1 commit into from
Oct 6, 2023
Merged

Update Rust crate mongodb to 2.7.0 #9

merged 1 commit into from
Oct 6, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 16, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
mongodb (source) dependencies minor 2.6.0 -> 2.7.0

Release Notes

mongodb/mongo-rust-driver (mongodb)

v2.7.0

Compare Source

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

Highlighted Changes

Serialization Behavior Change

When serializing values via serde, the serializer can indicate whether or not the target format is human-readable, allowing types to change behavior based on that. The Rust driver had inadvertently been serializing values given to find_one_and_replace and replace_one as human-readible when all other methods serialize as non-human-readible; this bug is fixed in 2.7.0, with those methods also serializing as non-human-readible.

However, it is potentially possible (if unlikely) that user code may rely on this bug. If your code does rely on human-readable serialization, you can specify that via the new human_readable_serialization field in CollectionOptions.

run_cursor_command

The Rust driver provides the run_command method as a way for users to directly send bson commands to the server; this is particularly useful when the driver does not yet have support for a newly-added server command. However, using this with commands that return a cursor requires re-implementing the logic for cursor iteration, which can be tedious and error-prone. The new run_cursor_command method avoids those problems, directly returning a Cursor using the same iteration logic as other methods.

SDAM Logging

The Rust driver will now log SDAM events when using the tracing-unstable feature.

Client Management

The Client type now provides three additional ways to shape behavior to fit your workload:

  • ClientOptions.max_connecting lets you specify how many "in flight" connections can be established in parallel. This was previously fixed at 2 and defaults to the same value.
  • Client::warm_connection_pool will create new connections to bring the connection pool up to min_pool_size, which can provide more predictable performance in some circumstances.
  • Client::shutdown will cleanly stop background tasks and wait for outstanding handles to be dropped. This is particularly useful when using event handlers that reference external resources, as otherwise those handlers may be invoked in a background task even after the Client has been dropped.

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-1420 Cache AWS credentials received from endpoints (#​905)
  • RUST-1604 Add custom bucketing fields to timeseries options (#​907)
  • RUST-1588: Add RunCursorCommand (#​912)
  • RUST-802 Support Unix Domain Sockets (#​908) (thanks @​PureWhiteWu!)
  • RUST-1509 SDAM Logging (#​918)
  • RUST-1608 Clean shutdown for Client (#​920)
  • RUST-1712 Provide a connection pool warmup method (#​932)
  • RUST-1712 Support User Configuration for max_connecting (#​923) (thanks @​LuisOsta!)
  • RUST-1687 Add human_readable_serialization option to Collection (#​902) (thanks @​maiconpavi!)
Improvements
  • RUST-1433 Propagate original error for some labeled retry errors (#​903)
  • minor: improve README.md (#​934)
  • upgrade webpki (#​935) (thanks @​fuchsnj!)
  • RUST-1763 deprecate CollectionOptions::human_readable_serialization (#​957) (#​959)
Bugfixes

v2.6.1

Compare Source

The MongoDB Rust driver team is pleased to announce the v2.6.1 release of the mongodb crate, now available for download from crates.io. This release removes a potential panic from the SessionCursor::with_type method.

Included Changes

Bugfixes
  • RUST-1719 Fix panic after SessionCursor::with_type is called (#​928) (thank you @​mlokr for this fix!)

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title Update Rust crate mongodb to 2.6.1 Update Rust crate mongodb to 2.7.0 Sep 27, 2023
@renovate renovate bot force-pushed the renovate/mongodb-2.x branch from 7c13499 to 222e090 Compare September 27, 2023 18:33
@fbjork fbjork merged commit 751112b into main Oct 6, 2023
6 checks passed
@fbjork fbjork deleted the renovate/mongodb-2.x branch October 6, 2023 06:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant