Skip to content

Commit

Permalink
release v3.0.0-beta (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
abr-egn authored Jun 5, 2024
1 parent 2057ddc commit ae9d492
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ homepage = "https://www.mongodb.com/docs/drivers/rust/"
license = "Apache-2.0"
readme = "README.md"
name = "mongodb"
version = "2.8.0"
version = "3.0.0-beta"

exclude = [
"etc/**",
Expand Down Expand Up @@ -70,7 +70,7 @@ tracing-unstable = ["dep:tracing", "dep:log"]
async-trait = "0.1.42"
base64 = "0.13.0"
bitflags = "1.1.0"
bson = { git = "https://github.com/mongodb/bson-rust", branch = "main" }
bson = "2.11.0"
chrono = { version = "0.4.7", default-features = false, features = ["clock", "std"] }
derivative = "2.1.1"
derive_more = "0.99.17"
Expand All @@ -84,8 +84,8 @@ hmac = "0.12.1"
once_cell = "1.19.0"
log = { version = "0.4.17", optional = true }
md-5 = "0.10.1"
mongocrypt = { git = "https://github.com/mongodb/libmongocrypt-rust.git", branch = "main", optional = true }
mongodb-internal-macros = { path = "macros" }
mongocrypt = { version = "0.1.3", optional = true }
mongodb-internal-macros = { path = "macros", version = "3.0.0-beta" }
num_cpus = { version = "1.13.1", optional = true }
openssl = { version = "0.10.38", optional = true }
openssl-probe = { version = "0.1.5", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The driver tests against Linux, MacOS, and Windows in CI.
The driver is available on [crates.io](https://crates.io/crates/mongodb). To use the driver in your application, simply add it to your project's `Cargo.toml`.
```toml
[dependencies]
mongodb = "2.8.0"
mongodb = "3.0.0-beta"
```

Version 1 of this crate has reached end of life and will no longer be receiving any updates or bug fixes, so all users are recommended to always depend on the latest 2.x release. See the [2.0.0 release notes](https://github.com/mongodb/mongo-rust-driver/releases/tag/v2.0.0) for migration information if upgrading from a 1.x version.
Expand All @@ -27,7 +27,7 @@ Version 1 of this crate has reached end of life and will no longer be receiving
The driver also provides a blocking sync API. To enable this, add the `"sync"` feature to your `Cargo.toml`:
```toml
[dependencies.mongodb]
version = "2.8.0"
version = "3.0.0-beta"
features = ["sync"]
```
**Note:** The sync-specific types can be imported from `mongodb::sync` (e.g. `mongodb::sync::Client`).
Expand Down
9 changes: 4 additions & 5 deletions etc/update_version/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ fn main() {
"Cargo.toml",
r#"name = "mongodb"\nversion = "(?<target>.*?)"\n"#,
),
Location::new(
"Cargo.toml",
r#"mongodb-internal-macros = \{ path = "macros", version = "(?<target>.*?)" \}\n"#,
),
Location::new(
"macros/Cargo.toml",
r#"name = "mongodb-internal-macros"\nversion = "(?<target>.*?)"\n"#,
Expand All @@ -99,10 +103,6 @@ fn main() {
r#"html_root_url = "https://docs.rs/mongodb/(?<target>.*?)""#,
),
];
let quote_version_loc = Location::new(
"Cargo.toml",
r#"mongodb-internal-macros = (?<target>\{ path = .* \})\n"#,
);
let bson_version_loc = Location::new("Cargo.toml", r#"bson = (?<target>\{ git = .*? \})\n"#);
let mongocrypt_version_loc =
Location::new("Cargo.toml", r#"mongocrypt = (?<target>\{ git = .*? \})\n"#);
Expand All @@ -113,7 +113,6 @@ fn main() {
for loc in &version_locs {
pending.apply(loc, &args.version);
}
pending.apply(&quote_version_loc, &format!("{:?}", args.version));
if let Some(bson) = args.bson {
pending.apply(&bson_version_loc, &format!("{:?}", bson));
}
Expand Down
2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mongodb-internal-macros"
version = "2.8.0"
version = "3.0.0-beta"
edition = "2021"
license = "Apache-2.0"

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(test, type_length_limit = "80000000")]
#![doc(html_root_url = "https://docs.rs/mongodb/2.8.0")]
#![doc(html_root_url = "https://docs.rs/mongodb/3.0.0-beta")]

#[macro_use]
pub mod options;
Expand Down

0 comments on commit ae9d492

Please sign in to comment.