mirror of
https://github.com/lune-org/mlua-luau-scheduler.git
synced 2025-04-04 10:30:56 +01:00
Use latest mlua to avoid clone
This commit is contained in:
parent
c2cf9da5cd
commit
5eddd99422
3 changed files with 4 additions and 12 deletions
6
Cargo.lock
generated
6
Cargo.lock
generated
|
@ -311,8 +311,7 @@ checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "mlua"
|
name = "mlua"
|
||||||
version = "0.9.5"
|
version = "0.9.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "git+https://github.com/mlua-rs/mlua.git?rev=1754226c7440ec6c194d2d678ec083b621d46ceb#1754226c7440ec6c194d2d678ec083b621d46ceb"
|
||||||
checksum = "1d3561f79659ff3afad7b25e2bf2ec21507fe601ebecb7f81088669ec4bfd51e"
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bstr",
|
"bstr",
|
||||||
"erased-serde",
|
"erased-serde",
|
||||||
|
@ -346,8 +345,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "mlua-sys"
|
name = "mlua-sys"
|
||||||
version = "0.5.1"
|
version = "0.5.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "git+https://github.com/mlua-rs/mlua.git?rev=1754226c7440ec6c194d2d678ec083b621d46ceb#1754226c7440ec6c194d2d678ec083b621d46ceb"
|
||||||
checksum = "2847b42764435201d8cbee1f517edb79c4cca4181877b90047587c89e1b7bce4"
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cc",
|
"cc",
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
|
|
|
@ -18,7 +18,7 @@ futures-lite = "2.2"
|
||||||
rustc-hash = "1.1"
|
rustc-hash = "1.1"
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
|
|
||||||
mlua = { version = "0.9.5", features = [
|
mlua = { git = "https://github.com/mlua-rs/mlua.git", rev = "1754226c7440ec6c194d2d678ec083b621d46ceb", features = [
|
||||||
"luau",
|
"luau",
|
||||||
"luau-jit",
|
"luau-jit",
|
||||||
"async",
|
"async",
|
||||||
|
|
|
@ -13,15 +13,9 @@ use mlua::prelude::*;
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub struct ThreadId(usize);
|
pub struct ThreadId(usize);
|
||||||
|
|
||||||
impl From<LuaThread<'_>> for ThreadId {
|
|
||||||
fn from(thread: LuaThread) -> Self {
|
|
||||||
Self(LuaValue::Thread(thread).to_pointer() as usize)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl From<&LuaThread<'_>> for ThreadId {
|
impl From<&LuaThread<'_>> for ThreadId {
|
||||||
fn from(thread: &LuaThread) -> Self {
|
fn from(thread: &LuaThread) -> Self {
|
||||||
Self(LuaValue::Thread(thread.clone()).to_pointer() as usize)
|
Self(thread.to_pointer() as usize)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue