Fedox-die-Ente / gmsv_mongo

The gmsv_mongo module enables the usage of MongoDB connections within Garry's Mod (GMod) via Rust. This opens up diverse possibilities for database interactions and management within GMod servers.
GNU Affero General Public License v3.0
12 stars 1 forks source link

Update Rust crate mongodb to v3 #5

Closed renovate[bot] closed 1 week ago

renovate[bot] commented 2 weeks ago

Mend Renovate

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.0`](https://togithub.com/mongodb/mongo-rust-driver/releases/tag/v3.0.0) [Compare Source](https://togithub.com/mongodb/mongo-rust-driver/compare/v2.8.2...v3.0.0) 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](https://crates.io/crates/mongodb/3.0.0). #### 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](https://togithub.com/mongodb/mongo-rust-driver/blob/main/migration-3.0.md). ##### Bulk Write The Rust driver now implements the [new Bulk Write specification](https://togithub.com/mongodb/specifications/blob/master/source/crud/bulk-write.md), 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](https://www.mongodb.com/zh-cn/docs/upcoming/release-notes/8.0/). 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](https://togithub.com/mongodb/mongo-rust-driver/compare/v2.8.2...3.0.x). ##### Breaking Changes - RUST-1810 Clean up concern helpers ([#​1011](https://togithub.com/mongodb/mongo-rust-driver/issues/1011)) - RUST-1603 Support the authorized_collections option ([#​1033](https://togithub.com/mongodb/mongo-rust-driver/issues/1033)) - RUST-1876 Require T: Send + Sync for Collection ([#​1043](https://togithub.com/mongodb/mongo-rust-driver/issues/1043)) - RUST-1306 Move Compression enum behind compression feature flags ([#​1055](https://togithub.com/mongodb/mongo-rust-driver/issues/1055)) - RUST-1563 Make ReadPreferenceOptions optional ([#​1059](https://togithub.com/mongodb/mongo-rust-driver/issues/1059)) - RUST-1208 Future-proof features ([#​1062](https://togithub.com/mongodb/mongo-rust-driver/issues/1062)) - RUST-1764 Drop human_readable options in favor of HumanReadable ([#​1064](https://togithub.com/mongodb/mongo-rust-driver/issues/1064)) - RUST-1695 Use consistent defaults for TypedBuilder ([#​1072](https://togithub.com/mongodb/mongo-rust-driver/issues/1072)) - RUST-1364 Collapse comment and comment_bson ([#​1070](https://togithub.com/mongodb/mongo-rust-driver/issues/1070)) ##### New Features - RUST-1652 Add a find_one method to GridFsBucket ([#​1015](https://togithub.com/mongodb/mongo-rust-driver/issues/1015)) - RUST-1856 expose Database::client ([#​1035](https://togithub.com/mongodb/mongo-rust-driver/issues/1035)) (thanks dgrijalva!) - RUST-1830 Support KMIP delegated protocol ([#​1115](https://togithub.com/mongodb/mongo-rust-driver/issues/1115)) ##### Improvements - chore: bump socket2 to 0.5 ([#​1020](https://togithub.com/mongodb/mongo-rust-driver/issues/1020)) (thanks attila-lin!) - chore: move lazy_static to once_cell ([#​1022](https://togithub.com/mongodb/mongo-rust-driver/issues/1022)) (thanks attila-lin!) - RUST-1631 Always use polling monitoring when running in a FaaS environment ([#​1030](https://togithub.com/mongodb/mongo-rust-driver/issues/1030)) ##### Bugfixes - RUST-1881 Check integer conversions ([#​1045](https://togithub.com/mongodb/mongo-rust-driver/issues/1045))

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.



This PR has been generated by Mend Renovate. View repository job log here.