mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 21:40:54 +01:00
Merge branch 'main' into chore/rokit-migration
This commit is contained in:
commit
f77e398c36
25 changed files with 163 additions and 153 deletions
64
.github/workflows/release.yaml
vendored
64
.github/workflows/release.yaml
vendored
|
@ -27,26 +27,26 @@ jobs:
|
||||||
file: crates/lune/Cargo.toml
|
file: crates/lune/Cargo.toml
|
||||||
field: package.version
|
field: package.version
|
||||||
|
|
||||||
dry-run:
|
# dry-run:
|
||||||
name: Dry-run
|
# name: Dry-run
|
||||||
needs: ["init"]
|
# needs: ["init"]
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout repository
|
# - name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
# - name: Install Rust
|
||||||
uses: dtolnay/rust-toolchain@stable
|
# uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
- name: Publish (dry-run)
|
# - name: Publish (dry-run)
|
||||||
uses: katyo/publish-crates@v2
|
# uses: katyo/publish-crates@v2
|
||||||
with:
|
# with:
|
||||||
dry-run: true
|
# dry-run: true
|
||||||
check-repo: true
|
# check-repo: true
|
||||||
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
# registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: ["init", "dry-run"]
|
needs: ["init"] # , "dry-run"]
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -112,7 +112,7 @@ jobs:
|
||||||
release-github:
|
release-github:
|
||||||
name: Release (GitHub)
|
name: Release (GitHub)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: ["init", "dry-run", "build"]
|
needs: ["init", "build"] # , "dry-run", "build"]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -139,20 +139,20 @@ jobs:
|
||||||
files: ./releases/*.zip
|
files: ./releases/*.zip
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
release-crates:
|
# release-crates:
|
||||||
name: Release (crates.io)
|
# name: Release (crates.io)
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
needs: ["init", "dry-run", "build"]
|
# needs: ["init", "dry-run", "build"]
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout repository
|
# - name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
# - name: Install Rust
|
||||||
uses: dtolnay/rust-toolchain@stable
|
# uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
- name: Publish crates
|
# - name: Publish crates
|
||||||
uses: katyo/publish-crates@v2
|
# uses: katyo/publish-crates@v2
|
||||||
with:
|
# with:
|
||||||
dry-run: false
|
# dry-run: false
|
||||||
check-repo: true
|
# check-repo: true
|
||||||
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
# registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
|
|
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -8,7 +8,15 @@ 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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## Unreleased
|
## `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
|
### Added
|
||||||
|
|
||||||
|
|
52
Cargo.lock
generated
52
Cargo.lock
generated
|
@ -1508,7 +1508,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune"
|
name = "lune"
|
||||||
version = "0.8.6"
|
version = "0.8.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
|
@ -1537,7 +1537,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-roblox"
|
name = "lune-roblox"
|
||||||
version = "0.1.2"
|
version = "0.1.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"glam",
|
"glam",
|
||||||
"lune-utils",
|
"lune-utils",
|
||||||
|
@ -1554,7 +1554,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std"
|
name = "lune-std"
|
||||||
version = "0.1.3"
|
version = "0.1.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lune-std-datetime",
|
"lune-std-datetime",
|
||||||
"lune-std-fs",
|
"lune-std-fs",
|
||||||
|
@ -1576,7 +1576,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std-datetime"
|
name = "lune-std-datetime"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"chrono_lc",
|
"chrono_lc",
|
||||||
|
@ -1587,7 +1587,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std-fs"
|
name = "lune-std-fs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bstr",
|
"bstr",
|
||||||
"lune-std-datetime",
|
"lune-std-datetime",
|
||||||
|
@ -1598,7 +1598,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std-luau"
|
name = "lune-std-luau"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lune-utils",
|
"lune-utils",
|
||||||
"mlua",
|
"mlua",
|
||||||
|
@ -1606,7 +1606,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std-net"
|
name = "lune-std-net"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bstr",
|
"bstr",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
|
@ -1627,7 +1627,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std-process"
|
name = "lune-std-process"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"directories",
|
"directories",
|
||||||
"lune-utils",
|
"lune-utils",
|
||||||
|
@ -1640,7 +1640,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std-regex"
|
name = "lune-std-regex"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lune-utils",
|
"lune-utils",
|
||||||
"mlua",
|
"mlua",
|
||||||
|
@ -1650,7 +1650,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std-roblox"
|
name = "lune-std-roblox"
|
||||||
version = "0.1.2"
|
version = "0.1.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lune-roblox",
|
"lune-roblox",
|
||||||
"lune-utils",
|
"lune-utils",
|
||||||
|
@ -1662,7 +1662,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std-serde"
|
name = "lune-std-serde"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-compression",
|
"async-compression",
|
||||||
"blake3",
|
"blake3",
|
||||||
|
@ -1685,7 +1685,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std-stdio"
|
name = "lune-std-stdio"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"dialoguer",
|
"dialoguer",
|
||||||
"lune-utils",
|
"lune-utils",
|
||||||
|
@ -1696,7 +1696,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-std-task"
|
name = "lune-std-task"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lune-utils",
|
"lune-utils",
|
||||||
"mlua",
|
"mlua",
|
||||||
|
@ -1706,7 +1706,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lune-utils"
|
name = "lune-utils"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"console",
|
"console",
|
||||||
"dunce",
|
"dunce",
|
||||||
|
@ -2227,9 +2227,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rbx_binary"
|
name = "rbx_binary"
|
||||||
version = "0.7.6"
|
version = "0.7.7"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "49ee5134b59834b17940d20dd2e057b6fe6902c1e566900e83106c50503b970e"
|
checksum = "7b85057e8ff75a1ce99248200c4b3c7b481a3d52f921f1053ecd67921dcc7930"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"lz4",
|
"lz4",
|
||||||
|
@ -2257,9 +2257,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rbx_dom_weak"
|
name = "rbx_dom_weak"
|
||||||
version = "2.8.0"
|
version = "2.9.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "34d35df0f09290d32976f655366342676a6645b87c39b6949473b9d28a969733"
|
checksum = "fcd2a17d09e46af0805f8b311a926402172b97e8d9388745c9adf8f448901841"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rbx_types",
|
"rbx_types",
|
||||||
"serde",
|
"serde",
|
||||||
|
@ -2267,9 +2267,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rbx_reflection"
|
name = "rbx_reflection"
|
||||||
version = "4.6.0"
|
version = "4.7.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "04ca5496737668378b17bacc9090ad361fc9c8b5f346bbd33162e083c98fa248"
|
checksum = "8118ac6021d700e8debe324af6b40ecfd2cef270a00247849dbdfeebb0802677"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rbx_types",
|
"rbx_types",
|
||||||
"serde",
|
"serde",
|
||||||
|
@ -2278,9 +2278,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rbx_reflection_database"
|
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"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "399ab2e1fa27c8428fe43fc4148d8085d187881f1c59cefea3711a2112e9cccc"
|
checksum = "0e29381d675420e841f8c02db5755cbb2545ed3e13f56c539546dc58702b512a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"rbx_reflection",
|
"rbx_reflection",
|
||||||
|
@ -2290,9 +2290,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rbx_types"
|
name = "rbx_types"
|
||||||
version = "1.9.0"
|
version = "1.10.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6ed7bbc0e1864143546b12ee0cf64a1a6f447d8ce7baf4fae755e4581929d230"
|
checksum = "e30f49b2a3bb667e4074ba73c2dfb8ca0873f610b448ccf318a240acfdec6c73"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.13.1",
|
"base64 0.13.1",
|
||||||
"bitflags 1.3.2",
|
"bitflags 1.3.2",
|
||||||
|
@ -2305,9 +2305,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rbx_xml"
|
name = "rbx_xml"
|
||||||
version = "0.13.4"
|
version = "0.13.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1c2abac6e71c97a56243f00c9c2def504fe4b698019d854dd8720da700a80d7c"
|
checksum = "2b14b3027bc9ccd82e2fc854c8bcd25ed58318e570c355bf2cf63df9cdbd5ba8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.13.1",
|
"base64 0.13.1",
|
||||||
"log",
|
"log",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-roblox"
|
name = "lune-roblox"
|
||||||
version = "0.1.2"
|
version = "0.1.4"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,17 +13,17 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mlua = { version = "0.9.7", features = ["luau"] }
|
mlua = { version = "0.9.9", features = ["luau"] }
|
||||||
|
|
||||||
glam = "0.27"
|
glam = "0.27"
|
||||||
rand = "0.8"
|
rand = "0.8"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
once_cell = "1.17"
|
once_cell = "1.17"
|
||||||
|
|
||||||
rbx_binary = "0.7.3"
|
rbx_binary = "0.7.7"
|
||||||
rbx_dom_weak = "2.6.0"
|
rbx_dom_weak = "2.9.0"
|
||||||
rbx_reflection = "4.4.0"
|
rbx_reflection = "4.7.0"
|
||||||
rbx_reflection_database = "0.2.9"
|
rbx_reflection_database = "0.2.12"
|
||||||
rbx_xml = "0.13.2"
|
rbx_xml = "0.13.5"
|
||||||
|
|
||||||
lune-utils = { version = "0.1.2", path = "../lune-utils" }
|
lune-utils = { version = "0.1.3", path = "../lune-utils" }
|
||||||
|
|
|
@ -26,7 +26,7 @@ pub fn add_methods<'lua, M: LuaUserDataMethods<'lua, Instance>>(m: &mut M) {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`Terrain`](https://create.roblox.com/docs/reference/engine/classes/Workspace#Terrain)
|
* [`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<Instance> {
|
fn data_model_get_workspace(_: &Lua, this: &Instance) -> LuaResult<Instance> {
|
||||||
get_or_create_property_ref_instance(this, "Workspace", "Workspace")
|
get_or_create_property_ref_instance(this, "Workspace", "Workspace")
|
||||||
|
@ -37,7 +37,7 @@ fn data_model_get_workspace(_: &Lua, this: &Instance) -> LuaResult<Instance> {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`GetService`](https://create.roblox.com/docs/reference/engine/classes/ServiceProvider#GetService)
|
* [`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<Instance> {
|
fn data_model_get_service(_: &Lua, this: &Instance, service_name: String) -> LuaResult<Instance> {
|
||||||
if matches!(class_is_a_service(&service_name), None | Some(false)) {
|
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
|
### See Also
|
||||||
* [`FindService`](https://create.roblox.com/docs/reference/engine/classes/ServiceProvider#FindService)
|
* [`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(
|
fn data_model_find_service(
|
||||||
_: &Lua,
|
_: &Lua,
|
||||||
|
|
|
@ -170,7 +170,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`Clone`](https://create.roblox.com/docs/reference/engine/classes/Instance#Clone)
|
* [`Clone`](https://create.roblox.com/docs/reference/engine/classes/Instance#Clone)
|
||||||
on the Roblox Developer Hub
|
on the Roblox Developer Hub
|
||||||
*/
|
*/
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn clone_instance(&self) -> Self {
|
pub fn clone_instance(&self) -> Self {
|
||||||
|
@ -194,7 +194,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`Destroy`](https://create.roblox.com/docs/reference/engine/classes/Instance#Destroy)
|
* [`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 {
|
pub fn destroy(&mut self) -> bool {
|
||||||
if self.is_destroyed() {
|
if self.is_destroyed() {
|
||||||
|
@ -221,7 +221,7 @@ impl Instance {
|
||||||
### See Also
|
### See Also
|
||||||
* [`Instance::Destroy`] for more info about what happens when an instance gets destroyed
|
* [`Instance::Destroy`] for more info about what happens when an instance gets destroyed
|
||||||
* [`ClearAllChildren`](https://create.roblox.com/docs/reference/engine/classes/Instance#ClearAllChildren)
|
* [`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) {
|
pub fn clear_all_children(&mut self) {
|
||||||
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -241,7 +241,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`IsA`](https://create.roblox.com/docs/reference/engine/classes/Instance#IsA)
|
* [`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<str>) -> bool {
|
pub fn is_a(&self, class_name: impl AsRef<str>) -> bool {
|
||||||
class_is_a(&self.class_name, class_name).unwrap_or(false)
|
class_is_a(&self.class_name, class_name).unwrap_or(false)
|
||||||
|
@ -254,7 +254,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`ClassName`](https://create.roblox.com/docs/reference/engine/classes/Instance#ClassName)
|
* [`ClassName`](https://create.roblox.com/docs/reference/engine/classes/Instance#ClassName)
|
||||||
on the Roblox Developer Hub
|
on the Roblox Developer Hub
|
||||||
*/
|
*/
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn get_class_name(&self) -> &str {
|
pub fn get_class_name(&self) -> &str {
|
||||||
|
@ -266,7 +266,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`Name`](https://create.roblox.com/docs/reference/engine/classes/Instance#Name)
|
* [`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 {
|
pub fn get_name(&self) -> String {
|
||||||
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -282,7 +282,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`Name`](https://create.roblox.com/docs/reference/engine/classes/Instance#Name)
|
* [`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<String>) {
|
pub fn set_name(&self, name: impl Into<String>) {
|
||||||
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -297,7 +297,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`Parent`](https://create.roblox.com/docs/reference/engine/classes/Instance#Parent)
|
* [`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<Instance> {
|
pub fn get_parent(&self) -> Option<Instance> {
|
||||||
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -324,7 +324,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`Parent`](https://create.roblox.com/docs/reference/engine/classes/Instance#Parent)
|
* [`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<Instance>) {
|
pub fn set_parent(&self, parent: Option<Instance>) {
|
||||||
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -369,7 +369,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`GetAttribute`](https://create.roblox.com/docs/reference/engine/classes/Instance#GetAttribute)
|
* [`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<str>) -> Option<DomValue> {
|
pub fn get_attribute(&self, name: impl AsRef<str>) -> Option<DomValue> {
|
||||||
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -390,7 +390,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`GetAttributes`](https://create.roblox.com/docs/reference/engine/classes/Instance#GetAttributes)
|
* [`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<String, DomValue> {
|
pub fn get_attributes(&self) -> BTreeMap<String, DomValue> {
|
||||||
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -411,7 +411,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`SetAttribute`](https://create.roblox.com/docs/reference/engine/classes/Instance#SetAttribute)
|
* [`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<str>, value: DomValue) {
|
pub fn set_attribute(&self, name: impl AsRef<str>, value: DomValue) {
|
||||||
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -466,7 +466,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`AddTag`](https://create.roblox.com/docs/reference/engine/classes/CollectionService#AddTag)
|
* [`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<str>) {
|
pub fn add_tag(&self, name: impl AsRef<str>) {
|
||||||
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -488,7 +488,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`GetTags`](https://create.roblox.com/docs/reference/engine/classes/CollectionService#GetTags)
|
* [`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<String> {
|
pub fn get_tags(&self) -> Vec<String> {
|
||||||
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -507,7 +507,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`HasTag`](https://create.roblox.com/docs/reference/engine/classes/CollectionService#HasTag)
|
* [`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<str>) -> bool {
|
pub fn has_tag(&self, name: impl AsRef<str>) -> bool {
|
||||||
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -527,7 +527,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`RemoveTag`](https://create.roblox.com/docs/reference/engine/classes/CollectionService#RemoveTag)
|
* [`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<str>) {
|
pub fn remove_tag(&self, name: impl AsRef<str>) {
|
||||||
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let mut dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -553,7 +553,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`GetChildren`](https://create.roblox.com/docs/reference/engine/classes/Instance#GetChildren)
|
* [`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<Instance> {
|
pub fn get_children(&self) -> Vec<Instance> {
|
||||||
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -576,7 +576,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`GetDescendants`](https://create.roblox.com/docs/reference/engine/classes/Instance#GetDescendants)
|
* [`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<Instance> {
|
pub fn get_descendants(&self) -> Vec<Instance> {
|
||||||
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -610,7 +610,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`GetFullName`](https://create.roblox.com/docs/reference/engine/classes/Instance#GetFullName)
|
* [`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 {
|
pub fn get_full_name(&self) -> String {
|
||||||
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
let dom = INTERNAL_DOM.lock().expect("Failed to lock document");
|
||||||
|
@ -700,7 +700,7 @@ impl Instance {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`FindFirstDescendant`](https://create.roblox.com/docs/reference/engine/classes/Instance#FindFirstDescendant)
|
* [`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<F>(&self, predicate: F) -> Option<Instance>
|
pub fn find_descendant<F>(&self, predicate: F) -> Option<Instance>
|
||||||
where
|
where
|
||||||
|
|
|
@ -40,7 +40,7 @@ fn get_or_create_material_colors(instance: &Instance) -> MaterialColors {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`GetMaterialColor`](https://create.roblox.com/docs/reference/engine/classes/Terrain#GetMaterialColor)
|
* [`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<Color3> {
|
fn terrain_get_material_color(_: &Lua, this: &Instance, material: EnumItem) -> LuaResult<Color3> {
|
||||||
let material_colors = get_or_create_material_colors(this);
|
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
|
### See Also
|
||||||
* [`SetMaterialColor`](https://create.roblox.com/docs/reference/engine/classes/Terrain#SetMaterialColor)
|
* [`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(
|
fn terrain_set_material_color(
|
||||||
_: &Lua,
|
_: &Lua,
|
||||||
|
|
|
@ -16,7 +16,7 @@ pub fn add_fields<'lua, F: LuaUserDataFields<'lua, Instance>>(f: &mut F) {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`Terrain`](https://create.roblox.com/docs/reference/engine/classes/Workspace#Terrain)
|
* [`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<Instance> {
|
fn workspace_get_terrain(_: &Lua, this: &Instance) -> LuaResult<Instance> {
|
||||||
get_or_create_property_ref_instance(this, "Terrain", "Terrain")
|
get_or_create_property_ref_instance(this, "Terrain", "Terrain")
|
||||||
|
@ -27,7 +27,7 @@ fn workspace_get_terrain(_: &Lua, this: &Instance) -> LuaResult<Instance> {
|
||||||
|
|
||||||
### See Also
|
### See Also
|
||||||
* [`CurrentCamera`](https://create.roblox.com/docs/reference/engine/classes/Workspace#CurrentCamera)
|
* [`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<Instance> {
|
fn workspace_get_camera(_: &Lua, this: &Instance) -> LuaResult<Instance> {
|
||||||
get_or_create_property_ref_instance(this, "CurrentCamera", "Camera")
|
get_or_create_property_ref_instance(this, "CurrentCamera", "Camera")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std-datetime"
|
name = "lune-std-datetime"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,10 +13,10 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mlua = { version = "0.9.7", features = ["luau"] }
|
mlua = { version = "0.9.9", features = ["luau"] }
|
||||||
|
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
chrono = "0.4.38"
|
chrono = "0.4.38"
|
||||||
chrono_lc = "0.1.6"
|
chrono_lc = "0.1.6"
|
||||||
|
|
||||||
lune-utils = { version = "0.1.2", path = "../lune-utils" }
|
lune-utils = { version = "0.1.3", path = "../lune-utils" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std-fs"
|
name = "lune-std-fs"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,11 +13,11 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mlua = { version = "0.9.7", features = ["luau"] }
|
mlua = { version = "0.9.9", features = ["luau"] }
|
||||||
|
|
||||||
bstr = "1.9"
|
bstr = "1.9"
|
||||||
|
|
||||||
tokio = { version = "1", default-features = false, features = ["fs"] }
|
tokio = { version = "1", default-features = false, features = ["fs"] }
|
||||||
|
|
||||||
lune-utils = { version = "0.1.2", path = "../lune-utils" }
|
lune-utils = { version = "0.1.3", path = "../lune-utils" }
|
||||||
lune-std-datetime = { version = "0.1.1", path = "../lune-std-datetime" }
|
lune-std-datetime = { version = "0.1.2", path = "../lune-std-datetime" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std-luau"
|
name = "lune-std-luau"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,6 +13,6 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std-net"
|
name = "lune-std-net"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,7 +13,7 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" }
|
||||||
|
|
||||||
bstr = "1.9"
|
bstr = "1.9"
|
||||||
|
@ -35,5 +35,5 @@ tokio = { version = "1", default-features = false, features = [
|
||||||
"macros",
|
"macros",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
lune-utils = { version = "0.1.2", path = "../lune-utils" }
|
lune-utils = { version = "0.1.3", path = "../lune-utils" }
|
||||||
lune-std-serde = { version = "0.1.1", path = "../lune-std-serde" }
|
lune-std-serde = { version = "0.1.2", path = "../lune-std-serde" }
|
||||||
|
|
|
@ -18,6 +18,7 @@ impl LuaRequest {
|
||||||
let path = self.head.uri.path().to_string();
|
let path = self.head.uri.path().to_string();
|
||||||
let body = lua.create_string(&self.body)?;
|
let body = lua.create_string(&self.body)?;
|
||||||
|
|
||||||
|
#[allow(clippy::mutable_key_type)]
|
||||||
let query: HashMap<LuaString, LuaString> = self
|
let query: HashMap<LuaString, LuaString> = self
|
||||||
.head
|
.head
|
||||||
.uri
|
.uri
|
||||||
|
@ -32,6 +33,7 @@ impl LuaRequest {
|
||||||
})
|
})
|
||||||
.collect::<LuaResult<_>>()?;
|
.collect::<LuaResult<_>>()?;
|
||||||
|
|
||||||
|
#[allow(clippy::mutable_key_type)]
|
||||||
let headers: HashMap<LuaString, LuaString> = self
|
let headers: HashMap<LuaString, LuaString> = self
|
||||||
.head
|
.head
|
||||||
.headers
|
.headers
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std-process"
|
name = "lune-std-process"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,7 +13,7 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" }
|
||||||
|
|
||||||
directories = "5.0"
|
directories = "5.0"
|
||||||
|
@ -28,4 +28,4 @@ tokio = { version = "1", default-features = false, features = [
|
||||||
"sync",
|
"sync",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
lune-utils = { version = "0.1.2", path = "../lune-utils" }
|
lune-utils = { version = "0.1.3", path = "../lune-utils" }
|
||||||
|
|
|
@ -42,8 +42,8 @@ pub fn module(lua: &Lua) -> LuaResult<LuaTable> {
|
||||||
cwd_str.push(MAIN_SEPARATOR);
|
cwd_str.push(MAIN_SEPARATOR);
|
||||||
}
|
}
|
||||||
// Create constants for OS & processor architecture
|
// Create constants for OS & processor architecture
|
||||||
let os = lua.create_string(&OS.to_lowercase())?;
|
let os = lua.create_string(OS.to_lowercase())?;
|
||||||
let arch = lua.create_string(&ARCH.to_lowercase())?;
|
let arch = lua.create_string(ARCH.to_lowercase())?;
|
||||||
// Create readonly args array
|
// Create readonly args array
|
||||||
let args_vec = lua
|
let args_vec = lua
|
||||||
.app_data_ref::<Vec<String>>()
|
.app_data_ref::<Vec<String>>()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std-regex"
|
name = "lune-std-regex"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,9 +13,9 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mlua = { version = "0.9.7", features = ["luau"] }
|
mlua = { version = "0.9.9", features = ["luau"] }
|
||||||
|
|
||||||
regex = "1.10"
|
regex = "1.10"
|
||||||
self_cell = "1.0"
|
self_cell = "1.0"
|
||||||
|
|
||||||
lune-utils = { version = "0.1.2", path = "../lune-utils" }
|
lune-utils = { version = "0.1.3", path = "../lune-utils" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std-roblox"
|
name = "lune-std-roblox"
|
||||||
version = "0.1.2"
|
version = "0.1.4"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,11 +13,11 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" }
|
||||||
|
|
||||||
once_cell = "1.17"
|
once_cell = "1.17"
|
||||||
rbx_cookie = { version = "0.1.4", default-features = false }
|
rbx_cookie = { version = "0.1.4", default-features = false }
|
||||||
|
|
||||||
lune-utils = { version = "0.1.2", path = "../lune-utils" }
|
lune-utils = { version = "0.1.3", path = "../lune-utils" }
|
||||||
lune-roblox = { version = "0.1.2", path = "../lune-roblox" }
|
lune-roblox = { version = "0.1.4", path = "../lune-roblox" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std-serde"
|
name = "lune-std-serde"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,7 +13,7 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mlua = { version = "0.9.7", features = ["luau", "serialize"] }
|
mlua = { version = "0.9.9", features = ["luau", "serialize"] }
|
||||||
|
|
||||||
async-compression = { version = "0.4", features = [
|
async-compression = { version = "0.4", features = [
|
||||||
"tokio",
|
"tokio",
|
||||||
|
@ -44,4 +44,4 @@ tokio = { version = "1", default-features = false, features = [
|
||||||
"io-util",
|
"io-util",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
lune-utils = { version = "0.1.2", path = "../lune-utils" }
|
lune-utils = { version = "0.1.3", path = "../lune-utils" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std-stdio"
|
name = "lune-std-stdio"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -14,7 +14,7 @@ workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
dialoguer = "0.11"
|
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" }
|
mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" }
|
||||||
|
|
||||||
tokio = { version = "1", default-features = false, features = [
|
tokio = { version = "1", default-features = false, features = [
|
||||||
|
@ -22,4 +22,4 @@ tokio = { version = "1", default-features = false, features = [
|
||||||
"io-util",
|
"io-util",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
lune-utils = { version = "0.1.2", path = "../lune-utils" }
|
lune-utils = { version = "0.1.3", path = "../lune-utils" }
|
||||||
|
|
|
@ -194,14 +194,14 @@ pub fn prompt(options: PromptOptions) -> LuaResult<PromptResult> {
|
||||||
prompt = prompt.default(b);
|
prompt = prompt.default(b);
|
||||||
};
|
};
|
||||||
let result = prompt
|
let result = prompt
|
||||||
.with_prompt(&options.text.expect("Missing text in prompt options"))
|
.with_prompt(options.text.expect("Missing text in prompt options"))
|
||||||
.interact()
|
.interact()
|
||||||
.into_lua_err()?;
|
.into_lua_err()?;
|
||||||
Ok(PromptResult::Boolean(result))
|
Ok(PromptResult::Boolean(result))
|
||||||
}
|
}
|
||||||
PromptKind::Select => {
|
PromptKind::Select => {
|
||||||
let chosen = Select::with_theme(&theme)
|
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"))
|
.items(&options.options.expect("Missing options in prompt options"))
|
||||||
.interact_opt()
|
.interact_opt()
|
||||||
.into_lua_err()?;
|
.into_lua_err()?;
|
||||||
|
@ -212,7 +212,7 @@ pub fn prompt(options: PromptOptions) -> LuaResult<PromptResult> {
|
||||||
}
|
}
|
||||||
PromptKind::MultiSelect => {
|
PromptKind::MultiSelect => {
|
||||||
let chosen = MultiSelect::with_theme(&theme)
|
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"))
|
.items(&options.options.expect("Missing options in prompt options"))
|
||||||
.interact_opt()
|
.interact_opt()
|
||||||
.into_lua_err()?;
|
.into_lua_err()?;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std-task"
|
name = "lune-std-task"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,9 +13,9 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" }
|
||||||
|
|
||||||
tokio = { version = "1", default-features = false, features = ["time"] }
|
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" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-std"
|
name = "lune-std"
|
||||||
version = "0.1.3"
|
version = "0.1.5"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -38,22 +38,22 @@ stdio = ["dep:lune-std-stdio"]
|
||||||
task = ["dep:lune-std-task"]
|
task = ["dep:lune-std-task"]
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" }
|
||||||
|
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
tokio = { version = "1", default-features = false, features = ["fs", "sync"] }
|
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-datetime = { optional = true, version = "0.1.3", path = "../lune-std-datetime" }
|
||||||
lune-std-fs = { optional = true, version = "0.1.1", path = "../lune-std-fs" }
|
lune-std-fs = { optional = true, version = "0.1.2", path = "../lune-std-fs" }
|
||||||
lune-std-luau = { optional = true, version = "0.1.1", path = "../lune-std-luau" }
|
lune-std-luau = { optional = true, version = "0.1.2", path = "../lune-std-luau" }
|
||||||
lune-std-net = { optional = true, version = "0.1.1", path = "../lune-std-net" }
|
lune-std-net = { optional = true, version = "0.1.2", path = "../lune-std-net" }
|
||||||
lune-std-process = { optional = true, version = "0.1.2", path = "../lune-std-process" }
|
lune-std-process = { optional = true, version = "0.1.3", path = "../lune-std-process" }
|
||||||
lune-std-regex = { optional = true, version = "0.1.1", path = "../lune-std-regex" }
|
lune-std-regex = { optional = true, version = "0.1.2", path = "../lune-std-regex" }
|
||||||
lune-std-roblox = { optional = true, version = "0.1.2", 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.1", path = "../lune-std-serde" }
|
lune-std-serde = { optional = true, version = "0.1.2", path = "../lune-std-serde" }
|
||||||
lune-std-stdio = { optional = true, version = "0.1.1", path = "../lune-std-stdio" }
|
lune-std-stdio = { optional = true, version = "0.1.2", path = "../lune-std-stdio" }
|
||||||
lune-std-task = { optional = true, version = "0.1.1", path = "../lune-std-task" }
|
lune-std-task = { optional = true, version = "0.1.2", path = "../lune-std-task" }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune-utils"
|
name = "lune-utils"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -13,7 +13,7 @@ path = "src/lib.rs"
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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"] }
|
tokio = { version = "1", default-features = false, features = ["fs"] }
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "lune"
|
name = "lune"
|
||||||
version = "0.8.6"
|
version = "0.8.8"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
repository = "https://github.com/lune-org/lune"
|
repository = "https://github.com/lune-org/lune"
|
||||||
|
@ -50,7 +50,7 @@ cli = ["dep:clap", "dep:include_dir", "dep:rustyline", "dep:zip_next"]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
mlua-luau-scheduler = { version = "0.0.2", path = "../mlua-luau-scheduler" }
|
||||||
|
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
|
@ -71,9 +71,9 @@ reqwest = { version = "0.11", default-features = false, features = [
|
||||||
"rustls-tls",
|
"rustls-tls",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
lune-std = { optional = true, version = "0.1.3", path = "../lune-std" }
|
lune-std = { optional = true, version = "0.1.5", path = "../lune-std" }
|
||||||
lune-roblox = { optional = true, version = "0.1.2", path = "../lune-roblox" }
|
lune-roblox = { optional = true, version = "0.1.4", path = "../lune-roblox" }
|
||||||
lune-utils = { version = "0.1.2", path = "../lune-utils" }
|
lune-utils = { version = "0.1.3", path = "../lune-utils" }
|
||||||
|
|
||||||
### CLI
|
### CLI
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ futures-lite = "2.2"
|
||||||
rustc-hash = "1.1"
|
rustc-hash = "1.1"
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
|
|
||||||
mlua = { version = "0.9.6", features = [
|
mlua = { version = "0.9.9", features = [
|
||||||
"luau",
|
"luau",
|
||||||
"luau-jit",
|
"luau-jit",
|
||||||
"async",
|
"async",
|
||||||
|
|
Loading…
Add table
Reference in a new issue