use redis_lua::lua; fn main() { let client = redis::Client::open("redis://127.0.0.1/").unwrap(); let mut con = client.get_connection().unwrap(); let msg = "Hello Lua"; let num = 42; let script = lua!( return @msg .. " / " .. @num ); let v: String = script.invoke(&mut con).unwrap(); println!("result: {}", v); }