From 3ca27fa51ca2498765d553ab9a2c364dec6804dc Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Mon, 11 Mar 2024 18:40:05 +0100 Subject: [PATCH] Version 0.0.2 --- CHANGELOG.md | 6 ++++++ Cargo.lock | 6 +++--- Cargo.toml | 4 ++-- lib/thread_id.rs | 4 +--- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8817628..5780b4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## `0.0.2` - March 11th, 2024 + +### Changed + +- Upgraded `mlua` version to `0.9.6` for more `ThreadId` optimizations + ## `0.0.1` - February 16th, 2024 Initial release diff --git a/Cargo.lock b/Cargo.lock index 006571d..e92dad2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -354,9 +354,9 @@ checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" [[package]] name = "mlua" -version = "0.9.5" +version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d3561f79659ff3afad7b25e2bf2ec21507fe601ebecb7f81088669ec4bfd51e" +checksum = "868d02cb5eb97761bbf6bd6922c1c7a88b8ea252bbf43bd8350a0bf8497a1fc0" dependencies = [ "bstr", "erased-serde", @@ -372,7 +372,7 @@ dependencies = [ [[package]] name = "mlua-luau-scheduler" -version = "0.0.1" +version = "0.0.2" dependencies = [ "async-executor", "async-fs", diff --git a/Cargo.toml b/Cargo.toml index 7cf27a8..d351696 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mlua-luau-scheduler" -version = "0.0.1" +version = "0.0.2" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/mlua-luau-scheduler" @@ -19,7 +19,7 @@ futures-lite = "2.2" rustc-hash = "1.1" tracing = "0.1" -mlua = { version = "0.9.5", features = [ +mlua = { version = "0.9.6", features = [ "luau", "luau-jit", "async", diff --git a/lib/thread_id.rs b/lib/thread_id.rs index f8b10b9..e2efcaa 100644 --- a/lib/thread_id.rs +++ b/lib/thread_id.rs @@ -17,10 +17,8 @@ pub struct ThreadId { impl From<&LuaThread<'_>> for ThreadId { fn from(thread: &LuaThread) -> Self { - // TODO: Use this to avoid clone when mlua releases a new version with it - // Self { inner: thread.to_pointer() as usize } Self { - inner: LuaValue::Thread(thread.clone()).to_pointer() as usize, + inner: thread.to_pointer() as usize, } } }