From 2c787432c3c28a07ab0c5bf68cb288b177d3fc97 Mon Sep 17 00:00:00 2001 From: owl Date: Mon, 1 Jan 2024 18:32:44 +0800 Subject: [PATCH] build(deps): bump mlua from 0.8.10 to 0.9.2 --- bindings/lua/Cargo.toml | 3 ++- bindings/lua/src/lib.rs | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bindings/lua/Cargo.toml b/bindings/lua/Cargo.toml index 4661d4f7dea..bdf086241a9 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 6a48b5dcf58..dc3f672a086 100644 --- a/bindings/lua/src/lib.rs +++ b/bindings/lua/src/lib.rs @@ -22,14 +22,15 @@ 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, }