This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 8a1ea401f chore: upgrade to mea 0.6.0 (#7132)
8a1ea401f is described below
commit 8a1ea401f1bae6eae65ac31037f017a1b91b346e
Author: tison <[email protected]>
AuthorDate: Sun Jan 4 21:40:47 2026 +0800
chore: upgrade to mea 0.6.0 (#7132)
Signed-off-by: tison <[email protected]>
---
bindings/cpp/Cargo.toml | 2 +-
bindings/python/Cargo.toml | 2 +-
core/Cargo.lock | 47 ++++++++++++++++++++-------------
core/Cargo.toml | 1 +
core/core/Cargo.toml | 2 +-
core/layers/concurrent-limit/Cargo.toml | 2 +-
core/services/aliyun-drive/Cargo.toml | 2 +-
core/services/b2/Cargo.toml | 2 +-
core/services/dropbox/Cargo.toml | 2 +-
core/services/gdrive/Cargo.toml | 2 +-
core/services/gridfs/Cargo.toml | 2 +-
core/services/koofr/Cargo.toml | 2 +-
core/services/mongodb/Cargo.toml | 2 +-
core/services/mysql/Cargo.toml | 2 +-
core/services/onedrive/Cargo.toml | 2 +-
core/services/postgresql/Cargo.toml | 2 +-
core/services/seafile/Cargo.toml | 2 +-
core/services/sqlite/Cargo.toml | 2 +-
core/services/surrealdb/Cargo.toml | 2 +-
core/services/tikv/Cargo.toml | 2 +-
core/services/webdav/Cargo.toml | 2 +-
core/services/webhdfs/Cargo.toml | 2 +-
integrations/object_store/Cargo.toml | 2 +-
integrations/object_store/src/store.rs | 12 ++++-----
24 files changed, 56 insertions(+), 46 deletions(-)
diff --git a/bindings/cpp/Cargo.toml b/bindings/cpp/Cargo.toml
index bae1ae0f5..5f99ce408 100644
--- a/bindings/cpp/Cargo.toml
+++ b/bindings/cpp/Cargo.toml
@@ -34,7 +34,7 @@ anyhow = { version = "1.0.100" }
cxx = { version = "1.0.186" }
cxx-async = { version = "0.1.3", optional = true }
futures = { version = "0.3.31" }
-mea = "0.5.1"
+mea = "0.6"
# this crate won't be published, we always use the local version
opendal = { version = ">=0", path = "../../core", features = ["blocking"] }
tokio = { version = "1.27", features = ["fs", "macros", "rt-multi-thread"] }
diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml
index 0db678105..b4fe5553b 100644
--- a/bindings/python/Cargo.toml
+++ b/bindings/python/Cargo.toml
@@ -201,7 +201,7 @@ bytes = "1.5.0"
dict_derive = "0.6.0"
futures = "0.3.28"
jiff = { version = "0.2.15" }
-mea = "0.5.1"
+mea = "0.6"
# this crate won't be published, we always use the local version
opendal = { version = ">=0", path = "../../core", features = [
"blocking",
diff --git a/core/Cargo.lock b/core/Cargo.lock
index 4ffc7fa7c..c285e40a3 100644
--- a/core/Cargo.lock
+++ b/core/Cargo.lock
@@ -2934,7 +2934,7 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6777b4743839a42fd32141d95d7adc4c98e3a1d5200a2598cf32ffd102c81e1"
dependencies = [
- "mea",
+ "mea 0.5.3",
"scopeguard",
]
@@ -4986,6 +4986,15 @@ dependencies = [
"slab",
]
+[[package]]
+name = "mea"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dfe9d4ca3e05f8356153d218e0503d5866dcc214cccdb2ff80d42a023837343e"
+dependencies = [
+ "slab",
+]
+
[[package]]
name = "memchr"
version = "2.7.6"
@@ -5694,7 +5703,7 @@ dependencies = [
"jiff",
"log",
"md-5",
- "mea",
+ "mea 0.6.0",
"moka",
"percent-encoding",
"pretty_assertions",
@@ -5786,7 +5795,7 @@ version = "0.55.0"
dependencies = [
"futures",
"http 1.4.0",
- "mea",
+ "mea 0.6.0",
"opendal-core",
]
@@ -5986,7 +5995,7 @@ dependencies = [
"bytes",
"http 1.4.0",
"log",
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"serde_json",
@@ -6073,7 +6082,7 @@ dependencies = [
"bytes",
"http 1.4.0",
"log",
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"serde_json",
@@ -6171,7 +6180,7 @@ version = "0.55.0"
dependencies = [
"bytes",
"http 1.4.0",
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"serde_json",
@@ -6253,7 +6262,7 @@ dependencies = [
"bytes",
"http 1.4.0",
"log",
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"serde_json",
@@ -6297,7 +6306,7 @@ name = "opendal-service-gridfs"
version = "0.55.0"
dependencies = [
"futures",
- "mea",
+ "mea 0.6.0",
"mongodb",
"opendal-core",
"serde",
@@ -6388,7 +6397,7 @@ dependencies = [
"bytes",
"http 1.4.0",
"log",
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"serde_json",
@@ -6445,7 +6454,7 @@ name = "opendal-service-mongodb"
version = "0.55.0"
dependencies = [
"anyhow",
- "mea",
+ "mea 0.6.0",
"mongodb",
"opendal-core",
"serde",
@@ -6469,7 +6478,7 @@ dependencies = [
name = "opendal-service-mysql"
version = "0.55.0"
dependencies = [
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"sqlx",
@@ -6497,7 +6506,7 @@ dependencies = [
"bytes",
"http 1.4.0",
"log",
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"serde_json",
@@ -6558,7 +6567,7 @@ dependencies = [
name = "opendal-service-postgresql"
version = "0.55.0"
dependencies = [
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"sqlx",
@@ -6629,7 +6638,7 @@ dependencies = [
"bytes",
"http 1.4.0",
"log",
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"serde_json",
@@ -6666,7 +6675,7 @@ dependencies = [
name = "opendal-service-sqlite"
version = "0.55.0"
dependencies = [
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"sqlx",
@@ -6677,7 +6686,7 @@ dependencies = [
name = "opendal-service-surrealdb"
version = "0.55.0"
dependencies = [
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"surrealdb",
@@ -6702,7 +6711,7 @@ dependencies = [
name = "opendal-service-tikv"
version = "0.55.0"
dependencies = [
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"tikv-client",
@@ -6763,7 +6772,7 @@ dependencies = [
"bytes",
"http 1.4.0",
"log",
- "mea",
+ "mea 0.6.0",
"opendal-core",
"quick-xml",
"serde",
@@ -6778,7 +6787,7 @@ dependencies = [
"bytes",
"http 1.4.0",
"log",
- "mea",
+ "mea 0.6.0",
"opendal-core",
"serde",
"serde_json",
diff --git a/core/Cargo.toml b/core/Cargo.toml
index 9ae0a8afe..55b3962b9 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -47,6 +47,7 @@ ctor = "0.6"
futures = { version = "0.3", default-features = false }
http = "1.1"
log = "0.4"
+mea = "0.6"
quick-xml = { version = "0.38", default-features = false }
rand = "0.8"
reqsign = { version = "0.16.5", default-features = false }
diff --git a/core/core/Cargo.toml b/core/core/Cargo.toml
index 255f5b89f..f16a45efb 100644
--- a/core/core/Cargo.toml
+++ b/core/core/Cargo.toml
@@ -72,7 +72,7 @@ http-body = "1"
jiff = { version = "0.2.17", features = ["serde"] }
log = { workspace = true }
md-5 = "0.10"
-mea = "0.5.3"
+mea = { workspace = true }
percent-encoding = "2"
quick-xml = { workspace = true, features = ["serialize", "overlapped-lists"] }
reqwest = { version = "0.12.24", features = [
diff --git a/core/layers/concurrent-limit/Cargo.toml
b/core/layers/concurrent-limit/Cargo.toml
index 46e6ed808..0960ab099 100644
--- a/core/layers/concurrent-limit/Cargo.toml
+++ b/core/layers/concurrent-limit/Cargo.toml
@@ -33,7 +33,7 @@ all-features = true
[dependencies]
futures = { workspace = true }
http = { workspace = true }
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
[dev-dependencies]
diff --git a/core/services/aliyun-drive/Cargo.toml
b/core/services/aliyun-drive/Cargo.toml
index 51841a03a..5878f8b3e 100644
--- a/core/services/aliyun-drive/Cargo.toml
+++ b/core/services/aliyun-drive/Cargo.toml
@@ -34,7 +34,7 @@ all-features = true
bytes = { workspace = true }
http = { workspace = true }
log = { workspace = true }
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
diff --git a/core/services/b2/Cargo.toml b/core/services/b2/Cargo.toml
index 59184c3cd..9baf43b3c 100644
--- a/core/services/b2/Cargo.toml
+++ b/core/services/b2/Cargo.toml
@@ -34,7 +34,7 @@ all-features = true
bytes = { workspace = true }
http = { workspace = true }
log = { workspace = true }
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
diff --git a/core/services/dropbox/Cargo.toml b/core/services/dropbox/Cargo.toml
index 69494d2fe..5c7156ef1 100644
--- a/core/services/dropbox/Cargo.toml
+++ b/core/services/dropbox/Cargo.toml
@@ -33,7 +33,7 @@ all-features = true
[dependencies]
bytes = { workspace = true }
http = { workspace = true }
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
diff --git a/core/services/gdrive/Cargo.toml b/core/services/gdrive/Cargo.toml
index 11fd076aa..9fa007b5b 100644
--- a/core/services/gdrive/Cargo.toml
+++ b/core/services/gdrive/Cargo.toml
@@ -38,7 +38,7 @@ opendal-core = { path = "../../core", version = "0.55.0",
default-features = fal
bytes = { workspace = true }
http = { workspace = true }
log = { workspace = true }
-mea = "0.5.3"
+mea = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
diff --git a/core/services/gridfs/Cargo.toml b/core/services/gridfs/Cargo.toml
index 403665371..1a3f03836 100644
--- a/core/services/gridfs/Cargo.toml
+++ b/core/services/gridfs/Cargo.toml
@@ -32,7 +32,7 @@ all-features = true
[dependencies]
futures = { workspace = true }
-mea = "0.5.3"
+mea = { workspace = true }
mongodb = "3.3.0"
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
diff --git a/core/services/koofr/Cargo.toml b/core/services/koofr/Cargo.toml
index 9e1750610..11ad06db2 100644
--- a/core/services/koofr/Cargo.toml
+++ b/core/services/koofr/Cargo.toml
@@ -34,7 +34,7 @@ all-features = true
bytes = { workspace = true }
http = { workspace = true }
log = { workspace = true }
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
diff --git a/core/services/mongodb/Cargo.toml b/core/services/mongodb/Cargo.toml
index e7310e813..f6532834d 100644
--- a/core/services/mongodb/Cargo.toml
+++ b/core/services/mongodb/Cargo.toml
@@ -31,7 +31,7 @@ version = { workspace = true }
all-features = true
[dependencies]
-mea = "0.5.3"
+mea = { workspace = true }
mongodb = { version = "3.3.0" }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
diff --git a/core/services/mysql/Cargo.toml b/core/services/mysql/Cargo.toml
index 9032f8e45..c4786a0b6 100644
--- a/core/services/mysql/Cargo.toml
+++ b/core/services/mysql/Cargo.toml
@@ -31,7 +31,7 @@ version = { workspace = true }
all-features = true
[dependencies]
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
sqlx = { version = "0.8.0", features = ["runtime-tokio-rustls", "mysql"] }
diff --git a/core/services/onedrive/Cargo.toml
b/core/services/onedrive/Cargo.toml
index 9efb3e485..1a5f04c70 100644
--- a/core/services/onedrive/Cargo.toml
+++ b/core/services/onedrive/Cargo.toml
@@ -34,7 +34,7 @@ all-features = true
bytes = { workspace = true }
http = { workspace = true }
log = { workspace = true }
-mea = { version = "0.5.3" }
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
diff --git a/core/services/postgresql/Cargo.toml
b/core/services/postgresql/Cargo.toml
index 3e62f256a..e276ad5c4 100644
--- a/core/services/postgresql/Cargo.toml
+++ b/core/services/postgresql/Cargo.toml
@@ -31,7 +31,7 @@ version = { workspace = true }
all-features = true
[dependencies]
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
sqlx = { version = "0.8.0", features = ["runtime-tokio-rustls", "postgres"] }
diff --git a/core/services/seafile/Cargo.toml b/core/services/seafile/Cargo.toml
index f868519cf..bb2dd3f9e 100644
--- a/core/services/seafile/Cargo.toml
+++ b/core/services/seafile/Cargo.toml
@@ -36,7 +36,7 @@ opendal-core = { path = "../../core", version = "0.55.0",
default-features = fal
bytes = { workspace = true }
http = { workspace = true }
log = { workspace = true }
-mea = "0.5.3"
+mea = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
diff --git a/core/services/sqlite/Cargo.toml b/core/services/sqlite/Cargo.toml
index 4d47d7bf1..95c89f7f2 100644
--- a/core/services/sqlite/Cargo.toml
+++ b/core/services/sqlite/Cargo.toml
@@ -31,7 +31,7 @@ version = { workspace = true }
all-features = true
[dependencies]
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
sqlx = { version = "0.8.0", features = ["runtime-tokio-rustls", "sqlite"] }
diff --git a/core/services/surrealdb/Cargo.toml
b/core/services/surrealdb/Cargo.toml
index d89c10d81..a23ab3544 100644
--- a/core/services/surrealdb/Cargo.toml
+++ b/core/services/surrealdb/Cargo.toml
@@ -31,7 +31,7 @@ version = { workspace = true }
all-features = true
[dependencies]
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
surrealdb = { version = "2", features = ["protocol-http"] }
diff --git a/core/services/tikv/Cargo.toml b/core/services/tikv/Cargo.toml
index 5060ea4a9..a1e961995 100644
--- a/core/services/tikv/Cargo.toml
+++ b/core/services/tikv/Cargo.toml
@@ -31,7 +31,7 @@ version = { workspace = true }
all-features = true
[dependencies]
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
tikv-client = { version = "0.3.0", default-features = false }
diff --git a/core/services/webdav/Cargo.toml b/core/services/webdav/Cargo.toml
index 408e12865..9c5ef0589 100644
--- a/core/services/webdav/Cargo.toml
+++ b/core/services/webdav/Cargo.toml
@@ -35,7 +35,7 @@ anyhow = { version = "1.0.100", features = ["std"] }
bytes = { workspace = true }
http = { workspace = true }
log = { workspace = true }
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
quick-xml = { workspace = true, features = ["serialize", "overlapped-lists"] }
serde = { workspace = true, features = ["derive"] }
diff --git a/core/services/webhdfs/Cargo.toml b/core/services/webhdfs/Cargo.toml
index e7557f8d5..446c8a6ca 100644
--- a/core/services/webhdfs/Cargo.toml
+++ b/core/services/webhdfs/Cargo.toml
@@ -35,7 +35,7 @@ anyhow = { version = "1.0.100", features = ["std"] }
bytes = { workspace = true }
http = { workspace = true }
log = { workspace = true }
-mea = "0.5.3"
+mea = { workspace = true }
opendal-core = { path = "../../core", version = "0.55.0", default-features =
false }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
diff --git a/integrations/object_store/Cargo.toml
b/integrations/object_store/Cargo.toml
index 4a17bab9b..5e3a0a356 100644
--- a/integrations/object_store/Cargo.toml
+++ b/integrations/object_store/Cargo.toml
@@ -41,7 +41,7 @@ async-trait = "0.1"
bytes = "1"
chrono = { version = "0.4.42", features = ["std", "clock"] }
futures = "0.3"
-mea = "0.5.1"
+mea = "0.6"
object_store = "0.12.3"
opendal = { version = "0.55.0", path = "../../core", default-features = false }
pin-project = "1.1"
diff --git a/integrations/object_store/src/store.rs
b/integrations/object_store/src/store.rs
index 08a377c18..6ae7cac93 100644
--- a/integrations/object_store/src/store.rs
+++ b/integrations/object_store/src/store.rs
@@ -151,7 +151,7 @@ impl OpendalStore {
}
impl Debug for OpendalStore {
- fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
+ fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
f.debug_struct("OpendalStore")
.field("scheme", &self.info.scheme())
.field("name", &self.info.name())
@@ -162,7 +162,7 @@ impl Debug for OpendalStore {
}
impl Display for OpendalStore {
- fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
+ fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
let info = self.inner.info();
write!(
f,
@@ -580,10 +580,6 @@ impl ObjectStore for OpendalStore {
self.copy_request(from, to, false).await
}
- async fn copy_if_not_exists(&self, from: &Path, to: &Path) ->
object_store::Result<()> {
- self.copy_request(from, to, true).await
- }
-
async fn rename(&self, from: &Path, to: &Path) -> object_store::Result<()>
{
self.inner
.rename(
@@ -596,6 +592,10 @@ impl ObjectStore for OpendalStore {
Ok(())
}
+
+ async fn copy_if_not_exists(&self, from: &Path, to: &Path) ->
object_store::Result<()> {
+ self.copy_request(from, to, true).await
+ }
}
/// `MultipartUpload`'s impl based on `Writer` in opendal