You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/01/01 11:51:50 UTC
(incubator-opendal) branch main updated: build(deps): bump mlua from 0.8.10 to 0.9.2 (#3890)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 5ec1dced04 build(deps): bump mlua from 0.8.10 to 0.9.2 (#3890)
5ec1dced04 is described below
commit 5ec1dced041d12d185bc5b91784600d594425083
Author: oowl <ju...@apache.org>
AuthorDate: Mon Jan 1 19:51:46 2024 +0800
build(deps): bump mlua from 0.8.10 to 0.9.2 (#3890)
---
Cargo.lock | 41 +++++++++++++++++++++++------------------
bindings/lua/Cargo.toml | 3 ++-
bindings/lua/src/lib.rs | 4 ++--
3 files changed, 27 insertions(+), 21 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 5610ef6720..4912f1cea2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -169,7 +169,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88903cb14723e4d4003335bb7f8a14f27691649105346a0f0957466c096adfe6"
dependencies = [
"anstyle",
- "bstr 1.8.0",
+ "bstr",
"doc-comment",
"predicates",
"predicates-core",
@@ -1146,15 +1146,6 @@ dependencies = [
"uuid",
]
-[[package]]
-name = "bstr"
-version = "0.2.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223"
-dependencies = [
- "memchr",
-]
-
[[package]]
name = "bstr"
version = "1.8.0"
@@ -4012,28 +4003,42 @@ dependencies = [
[[package]]
name = "mlua"
-version = "0.8.10"
+version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0bb37b0ba91f017aa7ca2b98ef99496827770cd635b4a932a6047c5b4bbe678e"
+checksum = "7c81f8ac20188feb5461a73eabb22a34dd09d6d58513535eb587e46bff6ba250"
dependencies = [
- "bstr 0.2.17",
- "cc",
+ "bstr",
+ "mlua-sys",
"mlua_derive",
"num-traits",
"once_cell",
- "pkg-config",
"rustc-hash",
]
+[[package]]
+name = "mlua-sys"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc29228347d6bdc9e613dc95c69df2817f755434ee0f7f3b27b57755fe238b7f"
+dependencies = [
+ "cc",
+ "cfg-if",
+ "pkg-config",
+]
+
[[package]]
name = "mlua_derive"
-version = "0.8.0"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b9214e60d3cf1643013b107330fcd374ccec1e4ba1eef76e7e5da5e8202e71c0"
+checksum = "0f359220f24e6452dd82a3f50d7242d4aab822b5594798048e953d7a9e0314c6"
dependencies = [
+ "itertools 0.11.0",
+ "once_cell",
+ "proc-macro-error",
"proc-macro2",
"quote",
- "syn 1.0.109",
+ "regex",
+ "syn 2.0.39",
]
[[package]]
diff --git a/bindings/lua/Cargo.toml b/bindings/lua/Cargo.toml
index 4661d4f7de..bdf086241a 100644
--- a/bindings/lua/Cargo.toml
+++ b/bindings/lua/Cargo.toml
@@ -37,7 +37,8 @@ lua52 = ["mlua", "mlua/lua52"]
crate-type = ["cdylib"]
[dependencies]
-mlua = { version = "0.8", features = [
+mlua = { version = "0.9", features = [
"module",
+ "macros",
], default-features = false, optional = true }
opendal.workspace = true
diff --git a/bindings/lua/src/lib.rs b/bindings/lua/src/lib.rs
index 6a48b5dcf5..8d0d55181e 100644
--- a/bindings/lua/src/lib.rs
+++ b/bindings/lua/src/lib.rs
@@ -22,14 +22,14 @@ use ::opendal as od;
use mlua::prelude::*;
use mlua::UserData;
-#[derive(Clone)]
+#[derive(Clone, mlua::FromLua)]
struct ODOperator {
operator: od::BlockingOperator,
}
impl UserData for ODOperator {}
-#[derive(Clone)]
+#[derive(Clone, mlua::FromLua)]
struct ODMetadata {
metadata: od::Metadata,
}