From 3e09807638e35a059430ba472656742784c091a3 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 10 Aug 2024 13:07:56 +0200 Subject: [PATCH 1/6] Bump all crate versions --- Cargo.lock | 28 +++++++++++++-------------- crates/lune-roblox/Cargo.toml | 6 +++--- crates/lune-std-datetime/Cargo.toml | 6 +++--- crates/lune-std-fs/Cargo.toml | 8 ++++---- crates/lune-std-luau/Cargo.toml | 6 +++--- crates/lune-std-net/Cargo.toml | 8 ++++---- crates/lune-std-process/Cargo.toml | 6 +++--- crates/lune-std-regex/Cargo.toml | 6 +++--- crates/lune-std-roblox/Cargo.toml | 8 ++++---- crates/lune-std-serde/Cargo.toml | 6 +++--- crates/lune-std-stdio/Cargo.toml | 6 +++--- crates/lune-std-task/Cargo.toml | 6 +++--- crates/lune-std/Cargo.toml | 26 ++++++++++++------------- crates/lune-utils/Cargo.toml | 4 ++-- crates/lune/Cargo.toml | 10 +++++----- crates/mlua-luau-scheduler/Cargo.toml | 2 +- 16 files changed, 71 insertions(+), 71 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6aa9b1f..734320a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1508,7 +1508,7 @@ dependencies = [ [[package]] name = "lune" -version = "0.8.6" +version = "0.8.7" dependencies = [ "anyhow", "clap", @@ -1537,7 +1537,7 @@ dependencies = [ [[package]] name = "lune-roblox" -version = "0.1.2" +version = "0.1.3" dependencies = [ "glam", "lune-utils", @@ -1554,7 +1554,7 @@ dependencies = [ [[package]] name = "lune-std" -version = "0.1.3" +version = "0.1.4" dependencies = [ "lune-std-datetime", "lune-std-fs", @@ -1576,7 +1576,7 @@ dependencies = [ [[package]] name = "lune-std-datetime" -version = "0.1.2" +version = "0.1.3" dependencies = [ "chrono", "chrono_lc", @@ -1587,7 +1587,7 @@ dependencies = [ [[package]] name = "lune-std-fs" -version = "0.1.1" +version = "0.1.2" dependencies = [ "bstr", "lune-std-datetime", @@ -1598,7 +1598,7 @@ dependencies = [ [[package]] name = "lune-std-luau" -version = "0.1.1" +version = "0.1.2" dependencies = [ "lune-utils", "mlua", @@ -1606,7 +1606,7 @@ dependencies = [ [[package]] name = "lune-std-net" -version = "0.1.1" +version = "0.1.2" dependencies = [ "bstr", "futures-util", @@ -1627,7 +1627,7 @@ dependencies = [ [[package]] name = "lune-std-process" -version = "0.1.2" +version = "0.1.3" dependencies = [ "directories", "lune-utils", @@ -1640,7 +1640,7 @@ dependencies = [ [[package]] name = "lune-std-regex" -version = "0.1.1" +version = "0.1.2" dependencies = [ "lune-utils", "mlua", @@ -1650,7 +1650,7 @@ dependencies = [ [[package]] name = "lune-std-roblox" -version = "0.1.2" +version = "0.1.3" dependencies = [ "lune-roblox", "lune-utils", @@ -1662,7 +1662,7 @@ dependencies = [ [[package]] name = "lune-std-serde" -version = "0.1.1" +version = "0.1.2" dependencies = [ "async-compression", "blake3", @@ -1685,7 +1685,7 @@ dependencies = [ [[package]] name = "lune-std-stdio" -version = "0.1.1" +version = "0.1.2" dependencies = [ "dialoguer", "lune-utils", @@ -1696,7 +1696,7 @@ dependencies = [ [[package]] name = "lune-std-task" -version = "0.1.1" +version = "0.1.2" dependencies = [ "lune-utils", "mlua", @@ -1706,7 +1706,7 @@ dependencies = [ [[package]] name = "lune-utils" -version = "0.1.2" +version = "0.1.3" dependencies = [ "console", "dunce", diff --git a/crates/lune-roblox/Cargo.toml b/crates/lune-roblox/Cargo.toml index f1e66c5..6950354 100644 --- a/crates/lune-roblox/Cargo.toml +++ b/crates/lune-roblox/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-roblox" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,7 +13,7 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } glam = "0.27" rand = "0.8" @@ -26,4 +26,4 @@ rbx_reflection = "4.4.0" rbx_reflection_database = "0.2.9" rbx_xml = "0.13.2" -lune-utils = { version = "0.1.2", path = "../lune-utils" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } diff --git a/crates/lune-std-datetime/Cargo.toml b/crates/lune-std-datetime/Cargo.toml index 2cef92e..b68b9ed 100644 --- a/crates/lune-std-datetime/Cargo.toml +++ b/crates/lune-std-datetime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-datetime" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,10 +13,10 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } thiserror = "1.0" chrono = "0.4.38" chrono_lc = "0.1.6" -lune-utils = { version = "0.1.2", path = "../lune-utils" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } diff --git a/crates/lune-std-fs/Cargo.toml b/crates/lune-std-fs/Cargo.toml index 144e5f2..69f45f2 100644 --- a/crates/lune-std-fs/Cargo.toml +++ b/crates/lune-std-fs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-fs" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,11 +13,11 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } bstr = "1.9" tokio = { version = "1", default-features = false, features = ["fs"] } -lune-utils = { version = "0.1.2", path = "../lune-utils" } -lune-std-datetime = { version = "0.1.1", path = "../lune-std-datetime" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } +lune-std-datetime = { version = "0.1.2", path = "../lune-std-datetime" } diff --git a/crates/lune-std-luau/Cargo.toml b/crates/lune-std-luau/Cargo.toml index e94511f..966a5c9 100644 --- a/crates/lune-std-luau/Cargo.toml +++ b/crates/lune-std-luau/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-luau" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,6 +13,6 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau", "luau-jit"] } +mlua = { version = "0.9.9", features = ["luau", "luau-jit"] } -lune-utils = { version = "0.1.2", path = "../lune-utils" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } diff --git a/crates/lune-std-net/Cargo.toml b/crates/lune-std-net/Cargo.toml index ef4722e..373e59e 100644 --- a/crates/lune-std-net/Cargo.toml +++ b/crates/lune-std-net/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-net" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,7 +13,7 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" } bstr = "1.9" @@ -35,5 +35,5 @@ tokio = { version = "1", default-features = false, features = [ "macros", ] } -lune-utils = { version = "0.1.2", path = "../lune-utils" } -lune-std-serde = { version = "0.1.1", path = "../lune-std-serde" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } +lune-std-serde = { version = "0.1.2", path = "../lune-std-serde" } diff --git a/crates/lune-std-process/Cargo.toml b/crates/lune-std-process/Cargo.toml index c8fc20d..8668dc0 100644 --- a/crates/lune-std-process/Cargo.toml +++ b/crates/lune-std-process/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-process" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,7 +13,7 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" } directories = "5.0" @@ -28,4 +28,4 @@ tokio = { version = "1", default-features = false, features = [ "sync", ] } -lune-utils = { version = "0.1.2", path = "../lune-utils" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } diff --git a/crates/lune-std-regex/Cargo.toml b/crates/lune-std-regex/Cargo.toml index c64b08e..5e1fe73 100644 --- a/crates/lune-std-regex/Cargo.toml +++ b/crates/lune-std-regex/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-regex" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,9 +13,9 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } regex = "1.10" self_cell = "1.0" -lune-utils = { version = "0.1.2", path = "../lune-utils" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } diff --git a/crates/lune-std-roblox/Cargo.toml b/crates/lune-std-roblox/Cargo.toml index 964e80c..6282f72 100644 --- a/crates/lune-std-roblox/Cargo.toml +++ b/crates/lune-std-roblox/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-roblox" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,11 +13,11 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" } once_cell = "1.17" rbx_cookie = { version = "0.1.4", default-features = false } -lune-utils = { version = "0.1.2", path = "../lune-utils" } -lune-roblox = { version = "0.1.2", path = "../lune-roblox" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } +lune-roblox = { version = "0.1.3", path = "../lune-roblox" } diff --git a/crates/lune-std-serde/Cargo.toml b/crates/lune-std-serde/Cargo.toml index 71a5f51..da892f5 100644 --- a/crates/lune-std-serde/Cargo.toml +++ b/crates/lune-std-serde/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-serde" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,7 +13,7 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau", "serialize"] } +mlua = { version = "0.9.9", features = ["luau", "serialize"] } async-compression = { version = "0.4", features = [ "tokio", @@ -44,4 +44,4 @@ tokio = { version = "1", default-features = false, features = [ "io-util", ] } -lune-utils = { version = "0.1.2", path = "../lune-utils" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } diff --git a/crates/lune-std-stdio/Cargo.toml b/crates/lune-std-stdio/Cargo.toml index 9e8cdf2..ca296d7 100644 --- a/crates/lune-std-stdio/Cargo.toml +++ b/crates/lune-std-stdio/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-stdio" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -14,7 +14,7 @@ workspace = true [dependencies] dialoguer = "0.11" -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" } tokio = { version = "1", default-features = false, features = [ @@ -22,4 +22,4 @@ tokio = { version = "1", default-features = false, features = [ "io-util", ] } -lune-utils = { version = "0.1.2", path = "../lune-utils" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } diff --git a/crates/lune-std-task/Cargo.toml b/crates/lune-std-task/Cargo.toml index 05ef45c..2a62e1f 100644 --- a/crates/lune-std-task/Cargo.toml +++ b/crates/lune-std-task/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-task" -version = "0.1.1" +version = "0.1.2" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,9 +13,9 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" } tokio = { version = "1", default-features = false, features = ["time"] } -lune-utils = { version = "0.1.2", path = "../lune-utils" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } diff --git a/crates/lune-std/Cargo.toml b/crates/lune-std/Cargo.toml index da06494..132338f 100644 --- a/crates/lune-std/Cargo.toml +++ b/crates/lune-std/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std" -version = "0.1.3" +version = "0.1.4" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -38,22 +38,22 @@ stdio = ["dep:lune-std-stdio"] task = ["dep:lune-std-task"] [dependencies] -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tokio = { version = "1", default-features = false, features = ["fs", "sync"] } -lune-utils = { version = "0.1.2", path = "../lune-utils" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } -lune-std-datetime = { optional = true, version = "0.1.2", path = "../lune-std-datetime" } -lune-std-fs = { optional = true, version = "0.1.1", path = "../lune-std-fs" } -lune-std-luau = { optional = true, version = "0.1.1", path = "../lune-std-luau" } -lune-std-net = { optional = true, version = "0.1.1", path = "../lune-std-net" } -lune-std-process = { optional = true, version = "0.1.2", path = "../lune-std-process" } -lune-std-regex = { optional = true, version = "0.1.1", path = "../lune-std-regex" } -lune-std-roblox = { optional = true, version = "0.1.2", path = "../lune-std-roblox" } -lune-std-serde = { optional = true, version = "0.1.1", path = "../lune-std-serde" } -lune-std-stdio = { optional = true, version = "0.1.1", path = "../lune-std-stdio" } -lune-std-task = { optional = true, version = "0.1.1", path = "../lune-std-task" } +lune-std-datetime = { optional = true, version = "0.1.3", path = "../lune-std-datetime" } +lune-std-fs = { optional = true, version = "0.1.2", path = "../lune-std-fs" } +lune-std-luau = { optional = true, version = "0.1.2", path = "../lune-std-luau" } +lune-std-net = { optional = true, version = "0.1.2", path = "../lune-std-net" } +lune-std-process = { optional = true, version = "0.1.3", path = "../lune-std-process" } +lune-std-regex = { optional = true, version = "0.1.2", path = "../lune-std-regex" } +lune-std-roblox = { optional = true, version = "0.1.3", path = "../lune-std-roblox" } +lune-std-serde = { optional = true, version = "0.1.2", path = "../lune-std-serde" } +lune-std-stdio = { optional = true, version = "0.1.2", path = "../lune-std-stdio" } +lune-std-task = { optional = true, version = "0.1.2", path = "../lune-std-task" } diff --git a/crates/lune-utils/Cargo.toml b/crates/lune-utils/Cargo.toml index 7390b70..09459dd 100644 --- a/crates/lune-utils/Cargo.toml +++ b/crates/lune-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-utils" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -13,7 +13,7 @@ path = "src/lib.rs" workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau", "async"] } +mlua = { version = "0.9.9", features = ["luau", "async"] } tokio = { version = "1", default-features = false, features = ["fs"] } diff --git a/crates/lune/Cargo.toml b/crates/lune/Cargo.toml index 013b554..c784669 100644 --- a/crates/lune/Cargo.toml +++ b/crates/lune/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune" -version = "0.8.6" +version = "0.8.7" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -50,7 +50,7 @@ cli = ["dep:clap", "dep:include_dir", "dep:rustyline", "dep:zip_next"] workspace = true [dependencies] -mlua = { version = "0.9.7", features = ["luau"] } +mlua = { version = "0.9.9", features = ["luau"] } mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" } anyhow = "1.0" @@ -71,9 +71,9 @@ reqwest = { version = "0.11", default-features = false, features = [ "rustls-tls", ] } -lune-std = { optional = true, version = "0.1.3", path = "../lune-std" } -lune-roblox = { optional = true, version = "0.1.2", path = "../lune-roblox" } -lune-utils = { version = "0.1.2", path = "../lune-utils" } +lune-std = { optional = true, version = "0.1.4", path = "../lune-std" } +lune-roblox = { optional = true, version = "0.1.3", path = "../lune-roblox" } +lune-utils = { version = "0.1.3", path = "../lune-utils" } ### CLI diff --git a/crates/mlua-luau-scheduler/Cargo.toml b/crates/mlua-luau-scheduler/Cargo.toml index 589d36d..e2cca4e 100644 --- a/crates/mlua-luau-scheduler/Cargo.toml +++ b/crates/mlua-luau-scheduler/Cargo.toml @@ -25,7 +25,7 @@ futures-lite = "2.2" rustc-hash = "1.1" tracing = "0.1" -mlua = { version = "0.9.6", features = [ +mlua = { version = "0.9.9", features = [ "luau", "luau-jit", "async", From 833d0e244be223014ca436cd7d2ea8fbe78ecae2 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 10 Aug 2024 13:25:55 +0200 Subject: [PATCH 2/6] Add version and date to changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4415540..5756bb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ 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). -## Unreleased +## `0.8.7` - August 10th, 2024 ### Added From 56f08a88aa690ad0a5edd9bdc340434c8c0b9d6b Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 10 Aug 2024 13:34:13 +0200 Subject: [PATCH 3/6] Fix new clippy lints --- crates/lune-roblox/src/instance/data_model.rs | 6 +-- crates/lune-roblox/src/instance/mod.rs | 40 +++++++++---------- crates/lune-roblox/src/instance/terrain.rs | 4 +- crates/lune-roblox/src/instance/workspace.rs | 4 +- crates/lune-std-net/src/server/request.rs | 2 + crates/lune-std-process/src/lib.rs | 4 +- crates/lune-std-stdio/src/prompt.rs | 6 +-- 7 files changed, 34 insertions(+), 32 deletions(-) diff --git a/crates/lune-roblox/src/instance/data_model.rs b/crates/lune-roblox/src/instance/data_model.rs index cfbc9d5..80003c1 100644 --- a/crates/lune-roblox/src/instance/data_model.rs +++ b/crates/lune-roblox/src/instance/data_model.rs @@ -26,7 +26,7 @@ pub fn add_methods<'lua, M: LuaUserDataMethods<'lua, Instance>>(m: &mut M) { ### See Also * [`Terrain`](https://create.roblox.com/docs/reference/engine/classes/Workspace#Terrain) - on the Roblox Developer Hub + on the Roblox Developer Hub */ fn data_model_get_workspace(_: &Lua, this: &Instance) -> LuaResult { get_or_create_property_ref_instance(this, "Workspace", "Workspace") @@ -37,7 +37,7 @@ fn data_model_get_workspace(_: &Lua, this: &Instance) -> LuaResult { ### See Also * [`GetService`](https://create.roblox.com/docs/reference/engine/classes/ServiceProvider#GetService) - on the Roblox Developer Hub + on the Roblox Developer Hub */ fn data_model_get_service(_: &Lua, this: &Instance, service_name: String) -> LuaResult { if matches!(class_is_a_service(&service_name), None | Some(false)) { @@ -58,7 +58,7 @@ fn data_model_get_service(_: &Lua, this: &Instance, service_name: String) -> Lua ### See Also * [`FindService`](https://create.roblox.com/docs/reference/engine/classes/ServiceProvider#FindService) - on the Roblox Developer Hub + on the Roblox Developer Hub */ fn data_model_find_service( _: &Lua, diff --git a/crates/lune-roblox/src/instance/mod.rs b/crates/lune-roblox/src/instance/mod.rs index 99bd16b..3397e09 100644 --- a/crates/lune-roblox/src/instance/mod.rs +++ b/crates/lune-roblox/src/instance/mod.rs @@ -170,7 +170,7 @@ impl Instance { ### See Also * [`Clone`](https://create.roblox.com/docs/reference/engine/classes/Instance#Clone) - on the Roblox Developer Hub + on the Roblox Developer Hub */ #[must_use] pub fn clone_instance(&self) -> Self { @@ -194,7 +194,7 @@ impl Instance { ### See Also * [`Destroy`](https://create.roblox.com/docs/reference/engine/classes/Instance#Destroy) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn destroy(&mut self) -> bool { if self.is_destroyed() { @@ -221,7 +221,7 @@ impl Instance { ### See Also * [`Instance::Destroy`] for more info about what happens when an instance gets destroyed * [`ClearAllChildren`](https://create.roblox.com/docs/reference/engine/classes/Instance#ClearAllChildren) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn clear_all_children(&mut self) { let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -241,7 +241,7 @@ impl Instance { ### See Also * [`IsA`](https://create.roblox.com/docs/reference/engine/classes/Instance#IsA) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn is_a(&self, class_name: impl AsRef) -> bool { class_is_a(&self.class_name, class_name).unwrap_or(false) @@ -254,7 +254,7 @@ impl Instance { ### See Also * [`ClassName`](https://create.roblox.com/docs/reference/engine/classes/Instance#ClassName) - on the Roblox Developer Hub + on the Roblox Developer Hub */ #[must_use] pub fn get_class_name(&self) -> &str { @@ -266,7 +266,7 @@ impl Instance { ### See Also * [`Name`](https://create.roblox.com/docs/reference/engine/classes/Instance#Name) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn get_name(&self) -> String { let dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -282,7 +282,7 @@ impl Instance { ### See Also * [`Name`](https://create.roblox.com/docs/reference/engine/classes/Instance#Name) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn set_name(&self, name: impl Into) { let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -297,7 +297,7 @@ impl Instance { ### See Also * [`Parent`](https://create.roblox.com/docs/reference/engine/classes/Instance#Parent) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn get_parent(&self) -> Option { let dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -324,7 +324,7 @@ impl Instance { ### See Also * [`Parent`](https://create.roblox.com/docs/reference/engine/classes/Instance#Parent) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn set_parent(&self, parent: Option) { let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -369,7 +369,7 @@ impl Instance { ### See Also * [`GetAttribute`](https://create.roblox.com/docs/reference/engine/classes/Instance#GetAttribute) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn get_attribute(&self, name: impl AsRef) -> Option { let dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -390,7 +390,7 @@ impl Instance { ### See Also * [`GetAttributes`](https://create.roblox.com/docs/reference/engine/classes/Instance#GetAttributes) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn get_attributes(&self) -> BTreeMap { let dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -411,7 +411,7 @@ impl Instance { ### See Also * [`SetAttribute`](https://create.roblox.com/docs/reference/engine/classes/Instance#SetAttribute) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn set_attribute(&self, name: impl AsRef, value: DomValue) { let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -466,7 +466,7 @@ impl Instance { ### See Also * [`AddTag`](https://create.roblox.com/docs/reference/engine/classes/CollectionService#AddTag) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn add_tag(&self, name: impl AsRef) { let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -488,7 +488,7 @@ impl Instance { ### See Also * [`GetTags`](https://create.roblox.com/docs/reference/engine/classes/CollectionService#GetTags) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn get_tags(&self) -> Vec { let dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -507,7 +507,7 @@ impl Instance { ### See Also * [`HasTag`](https://create.roblox.com/docs/reference/engine/classes/CollectionService#HasTag) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn has_tag(&self, name: impl AsRef) -> bool { let dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -527,7 +527,7 @@ impl Instance { ### See Also * [`RemoveTag`](https://create.roblox.com/docs/reference/engine/classes/CollectionService#RemoveTag) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn remove_tag(&self, name: impl AsRef) { let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -553,7 +553,7 @@ impl Instance { ### See Also * [`GetChildren`](https://create.roblox.com/docs/reference/engine/classes/Instance#GetChildren) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn get_children(&self) -> Vec { let dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -576,7 +576,7 @@ impl Instance { ### See Also * [`GetDescendants`](https://create.roblox.com/docs/reference/engine/classes/Instance#GetDescendants) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn get_descendants(&self) -> Vec { let dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -610,7 +610,7 @@ impl Instance { ### See Also * [`GetFullName`](https://create.roblox.com/docs/reference/engine/classes/Instance#GetFullName) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn get_full_name(&self) -> String { let dom = INTERNAL_DOM.lock().expect("Failed to lock document"); @@ -700,7 +700,7 @@ impl Instance { ### See Also * [`FindFirstDescendant`](https://create.roblox.com/docs/reference/engine/classes/Instance#FindFirstDescendant) - on the Roblox Developer Hub + on the Roblox Developer Hub */ pub fn find_descendant(&self, predicate: F) -> Option where diff --git a/crates/lune-roblox/src/instance/terrain.rs b/crates/lune-roblox/src/instance/terrain.rs index 852f321..96a036b 100644 --- a/crates/lune-roblox/src/instance/terrain.rs +++ b/crates/lune-roblox/src/instance/terrain.rs @@ -40,7 +40,7 @@ fn get_or_create_material_colors(instance: &Instance) -> MaterialColors { ### See Also * [`GetMaterialColor`](https://create.roblox.com/docs/reference/engine/classes/Terrain#GetMaterialColor) - on the Roblox Developer Hub + on the Roblox Developer Hub */ fn terrain_get_material_color(_: &Lua, this: &Instance, material: EnumItem) -> LuaResult { let material_colors = get_or_create_material_colors(this); @@ -65,7 +65,7 @@ fn terrain_get_material_color(_: &Lua, this: &Instance, material: EnumItem) -> L ### See Also * [`SetMaterialColor`](https://create.roblox.com/docs/reference/engine/classes/Terrain#SetMaterialColor) - on the Roblox Developer Hub + on the Roblox Developer Hub */ fn terrain_set_material_color( _: &Lua, diff --git a/crates/lune-roblox/src/instance/workspace.rs b/crates/lune-roblox/src/instance/workspace.rs index 70f1b88..f11cd8d 100644 --- a/crates/lune-roblox/src/instance/workspace.rs +++ b/crates/lune-roblox/src/instance/workspace.rs @@ -16,7 +16,7 @@ pub fn add_fields<'lua, F: LuaUserDataFields<'lua, Instance>>(f: &mut F) { ### See Also * [`Terrain`](https://create.roblox.com/docs/reference/engine/classes/Workspace#Terrain) - on the Roblox Developer Hub + on the Roblox Developer Hub */ fn workspace_get_terrain(_: &Lua, this: &Instance) -> LuaResult { get_or_create_property_ref_instance(this, "Terrain", "Terrain") @@ -27,7 +27,7 @@ fn workspace_get_terrain(_: &Lua, this: &Instance) -> LuaResult { ### See Also * [`CurrentCamera`](https://create.roblox.com/docs/reference/engine/classes/Workspace#CurrentCamera) - on the Roblox Developer Hub + on the Roblox Developer Hub */ fn workspace_get_camera(_: &Lua, this: &Instance) -> LuaResult { get_or_create_property_ref_instance(this, "CurrentCamera", "Camera") diff --git a/crates/lune-std-net/src/server/request.rs b/crates/lune-std-net/src/server/request.rs index f3de802..e5eaf8d 100644 --- a/crates/lune-std-net/src/server/request.rs +++ b/crates/lune-std-net/src/server/request.rs @@ -18,6 +18,7 @@ impl LuaRequest { let path = self.head.uri.path().to_string(); let body = lua.create_string(&self.body)?; + #[allow(clippy::mutable_key_type)] let query: HashMap = self .head .uri @@ -32,6 +33,7 @@ impl LuaRequest { }) .collect::>()?; + #[allow(clippy::mutable_key_type)] let headers: HashMap = self .head .headers diff --git a/crates/lune-std-process/src/lib.rs b/crates/lune-std-process/src/lib.rs index d3fd502..29d73ea 100644 --- a/crates/lune-std-process/src/lib.rs +++ b/crates/lune-std-process/src/lib.rs @@ -42,8 +42,8 @@ pub fn module(lua: &Lua) -> LuaResult { cwd_str.push(MAIN_SEPARATOR); } // Create constants for OS & processor architecture - let os = lua.create_string(&OS.to_lowercase())?; - let arch = lua.create_string(&ARCH.to_lowercase())?; + let os = lua.create_string(OS.to_lowercase())?; + let arch = lua.create_string(ARCH.to_lowercase())?; // Create readonly args array let args_vec = lua .app_data_ref::>() diff --git a/crates/lune-std-stdio/src/prompt.rs b/crates/lune-std-stdio/src/prompt.rs index e1fcc02..a893544 100644 --- a/crates/lune-std-stdio/src/prompt.rs +++ b/crates/lune-std-stdio/src/prompt.rs @@ -194,14 +194,14 @@ pub fn prompt(options: PromptOptions) -> LuaResult { prompt = prompt.default(b); }; let result = prompt - .with_prompt(&options.text.expect("Missing text in prompt options")) + .with_prompt(options.text.expect("Missing text in prompt options")) .interact() .into_lua_err()?; Ok(PromptResult::Boolean(result)) } PromptKind::Select => { let chosen = Select::with_theme(&theme) - .with_prompt(&options.text.unwrap_or_default()) + .with_prompt(options.text.unwrap_or_default()) .items(&options.options.expect("Missing options in prompt options")) .interact_opt() .into_lua_err()?; @@ -212,7 +212,7 @@ pub fn prompt(options: PromptOptions) -> LuaResult { } PromptKind::MultiSelect => { let chosen = MultiSelect::with_theme(&theme) - .with_prompt(&options.text.unwrap_or_default()) + .with_prompt(options.text.unwrap_or_default()) .items(&options.options.expect("Missing options in prompt options")) .interact_opt() .into_lua_err()?; From 1d4d1635eba6a29fc06c821ad2fff24fe83df6f8 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 10 Aug 2024 13:36:19 +0200 Subject: [PATCH 4/6] Temporarily disable publish to crates.io in workflow --- .github/workflows/release.yaml | 64 +++++++++++++++++----------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d794e2b..26e121e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,26 +27,26 @@ jobs: file: crates/lune/Cargo.toml field: package.version - dry-run: - name: Dry-run - needs: ["init"] - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 + # dry-run: + # name: Dry-run + # needs: ["init"] + # runs-on: ubuntu-latest + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 - - name: Install Rust - uses: dtolnay/rust-toolchain@stable + # - name: Install Rust + # uses: dtolnay/rust-toolchain@stable - - name: Publish (dry-run) - uses: katyo/publish-crates@v2 - with: - dry-run: true - check-repo: true - registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + # - name: Publish (dry-run) + # uses: katyo/publish-crates@v2 + # with: + # dry-run: true + # check-repo: true + # registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} build: - needs: ["init", "dry-run"] + needs: ["init"] # , "dry-run"] strategy: fail-fast: false matrix: @@ -112,7 +112,7 @@ jobs: release-github: name: Release (GitHub) runs-on: ubuntu-latest - needs: ["init", "dry-run", "build"] + needs: ["init", "build"] # , "dry-run", "build"] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -139,20 +139,20 @@ jobs: files: ./releases/*.zip draft: true - release-crates: - name: Release (crates.io) - runs-on: ubuntu-latest - needs: ["init", "dry-run", "build"] - steps: - - name: Checkout repository - uses: actions/checkout@v4 + # release-crates: + # name: Release (crates.io) + # runs-on: ubuntu-latest + # needs: ["init", "dry-run", "build"] + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 - - name: Install Rust - uses: dtolnay/rust-toolchain@stable + # - name: Install Rust + # uses: dtolnay/rust-toolchain@stable - - name: Publish crates - uses: katyo/publish-crates@v2 - with: - dry-run: false - check-repo: true - registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + # - name: Publish crates + # uses: katyo/publish-crates@v2 + # with: + # dry-run: false + # check-repo: true + # registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} From a007fa94a65adfdf57ff10049906902ea9505c80 Mon Sep 17 00:00:00 2001 From: Kenneth Loeffler Date: Thu, 22 Aug 2024 12:24:32 -0700 Subject: [PATCH 5/6] Update all rbx-dom dependencies to their latest versions (#245) --- Cargo.lock | 24 ++++++++++++------------ crates/lune-roblox/Cargo.toml | 10 +++++----- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 734320a..e981098 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2227,9 +2227,9 @@ dependencies = [ [[package]] name = "rbx_binary" -version = "0.7.6" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49ee5134b59834b17940d20dd2e057b6fe6902c1e566900e83106c50503b970e" +checksum = "7b85057e8ff75a1ce99248200c4b3c7b481a3d52f921f1053ecd67921dcc7930" dependencies = [ "log", "lz4", @@ -2257,9 +2257,9 @@ dependencies = [ [[package]] name = "rbx_dom_weak" -version = "2.8.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34d35df0f09290d32976f655366342676a6645b87c39b6949473b9d28a969733" +checksum = "fcd2a17d09e46af0805f8b311a926402172b97e8d9388745c9adf8f448901841" dependencies = [ "rbx_types", "serde", @@ -2267,9 +2267,9 @@ dependencies = [ [[package]] name = "rbx_reflection" -version = "4.6.0" +version = "4.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04ca5496737668378b17bacc9090ad361fc9c8b5f346bbd33162e083c98fa248" +checksum = "8118ac6021d700e8debe324af6b40ecfd2cef270a00247849dbdfeebb0802677" dependencies = [ "rbx_types", "serde", @@ -2278,9 +2278,9 @@ dependencies = [ [[package]] name = "rbx_reflection_database" -version = "0.2.11+roblox-634" +version = "0.2.12+roblox-638" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "399ab2e1fa27c8428fe43fc4148d8085d187881f1c59cefea3711a2112e9cccc" +checksum = "0e29381d675420e841f8c02db5755cbb2545ed3e13f56c539546dc58702b512a" dependencies = [ "lazy_static", "rbx_reflection", @@ -2290,9 +2290,9 @@ dependencies = [ [[package]] name = "rbx_types" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ed7bbc0e1864143546b12ee0cf64a1a6f447d8ce7baf4fae755e4581929d230" +checksum = "e30f49b2a3bb667e4074ba73c2dfb8ca0873f610b448ccf318a240acfdec6c73" dependencies = [ "base64 0.13.1", "bitflags 1.3.2", @@ -2305,9 +2305,9 @@ dependencies = [ [[package]] name = "rbx_xml" -version = "0.13.4" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c2abac6e71c97a56243f00c9c2def504fe4b698019d854dd8720da700a80d7c" +checksum = "2b14b3027bc9ccd82e2fc854c8bcd25ed58318e570c355bf2cf63df9cdbd5ba8" dependencies = [ "base64 0.13.1", "log", diff --git a/crates/lune-roblox/Cargo.toml b/crates/lune-roblox/Cargo.toml index 6950354..cdf6c7b 100644 --- a/crates/lune-roblox/Cargo.toml +++ b/crates/lune-roblox/Cargo.toml @@ -20,10 +20,10 @@ rand = "0.8" thiserror = "1.0" once_cell = "1.17" -rbx_binary = "0.7.3" -rbx_dom_weak = "2.6.0" -rbx_reflection = "4.4.0" -rbx_reflection_database = "0.2.9" -rbx_xml = "0.13.2" +rbx_binary = "0.7.7" +rbx_dom_weak = "2.9.0" +rbx_reflection = "4.7.0" +rbx_reflection_database = "0.2.12" +rbx_xml = "0.13.5" lune-utils = { version = "0.1.3", path = "../lune-utils" } From ff83c401b8cc915ec2e2e5dbfd29a39303f7a575 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Thu, 22 Aug 2024 21:30:36 +0200 Subject: [PATCH 6/6] Version 0.8.8 --- CHANGELOG.md | 8 ++++++++ Cargo.lock | 8 ++++---- crates/lune-roblox/Cargo.toml | 2 +- crates/lune-std-roblox/Cargo.toml | 4 ++-- crates/lune-std/Cargo.toml | 4 ++-- crates/lune/Cargo.toml | 6 +++--- 6 files changed, 20 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5756bb0..5425834 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,14 @@ 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.8.8` - August 22nd, 2024 + +### Fixed + +- Fixed errors when deserializing `Lighting.AttributesSerialize` by updating `rbx-dom` dependencies ([#245]) + +[#245]: https://github.com/lune-org/lune/pull/245 + ## `0.8.7` - August 10th, 2024 ### Added diff --git a/Cargo.lock b/Cargo.lock index e981098..59d32a9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1508,7 +1508,7 @@ dependencies = [ [[package]] name = "lune" -version = "0.8.7" +version = "0.8.8" dependencies = [ "anyhow", "clap", @@ -1537,7 +1537,7 @@ dependencies = [ [[package]] name = "lune-roblox" -version = "0.1.3" +version = "0.1.4" dependencies = [ "glam", "lune-utils", @@ -1554,7 +1554,7 @@ dependencies = [ [[package]] name = "lune-std" -version = "0.1.4" +version = "0.1.5" dependencies = [ "lune-std-datetime", "lune-std-fs", @@ -1650,7 +1650,7 @@ dependencies = [ [[package]] name = "lune-std-roblox" -version = "0.1.3" +version = "0.1.4" dependencies = [ "lune-roblox", "lune-utils", diff --git a/crates/lune-roblox/Cargo.toml b/crates/lune-roblox/Cargo.toml index cdf6c7b..73ca05a 100644 --- a/crates/lune-roblox/Cargo.toml +++ b/crates/lune-roblox/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-roblox" -version = "0.1.3" +version = "0.1.4" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" diff --git a/crates/lune-std-roblox/Cargo.toml b/crates/lune-std-roblox/Cargo.toml index 6282f72..599a768 100644 --- a/crates/lune-std-roblox/Cargo.toml +++ b/crates/lune-std-roblox/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std-roblox" -version = "0.1.3" +version = "0.1.4" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -20,4 +20,4 @@ once_cell = "1.17" rbx_cookie = { version = "0.1.4", default-features = false } lune-utils = { version = "0.1.3", path = "../lune-utils" } -lune-roblox = { version = "0.1.3", path = "../lune-roblox" } +lune-roblox = { version = "0.1.4", path = "../lune-roblox" } diff --git a/crates/lune-std/Cargo.toml b/crates/lune-std/Cargo.toml index 132338f..07762b6 100644 --- a/crates/lune-std/Cargo.toml +++ b/crates/lune-std/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune-std" -version = "0.1.4" +version = "0.1.5" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -53,7 +53,7 @@ lune-std-luau = { optional = true, version = "0.1.2", path = "../lune-std-luau" lune-std-net = { optional = true, version = "0.1.2", path = "../lune-std-net" } lune-std-process = { optional = true, version = "0.1.3", path = "../lune-std-process" } lune-std-regex = { optional = true, version = "0.1.2", path = "../lune-std-regex" } -lune-std-roblox = { optional = true, version = "0.1.3", path = "../lune-std-roblox" } +lune-std-roblox = { optional = true, version = "0.1.4", path = "../lune-std-roblox" } lune-std-serde = { optional = true, version = "0.1.2", path = "../lune-std-serde" } lune-std-stdio = { optional = true, version = "0.1.2", path = "../lune-std-stdio" } lune-std-task = { optional = true, version = "0.1.2", path = "../lune-std-task" } diff --git a/crates/lune/Cargo.toml b/crates/lune/Cargo.toml index c784669..564dfc3 100644 --- a/crates/lune/Cargo.toml +++ b/crates/lune/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lune" -version = "0.8.7" +version = "0.8.8" edition = "2021" license = "MPL-2.0" repository = "https://github.com/lune-org/lune" @@ -71,8 +71,8 @@ reqwest = { version = "0.11", default-features = false, features = [ "rustls-tls", ] } -lune-std = { optional = true, version = "0.1.4", path = "../lune-std" } -lune-roblox = { optional = true, version = "0.1.3", path = "../lune-roblox" } +lune-std = { optional = true, version = "0.1.5", path = "../lune-std" } +lune-roblox = { optional = true, version = "0.1.4", path = "../lune-roblox" } lune-utils = { version = "0.1.3", path = "../lune-utils" } ### CLI