manen

Fancy Lua REPL
Log | Files | Refs | README | LICENSE

commit bd783f6193bb61f4b7bd58a99fa99af5306508fb
parent 0caae793ec62a828860c9bc6a9b3c1a74237eecc
Author: Sylvia Ivory <git@sivory.net>
Date:   Tue,  1 Jul 2025 22:20:24 -0700

Remove embedded Luau

Diffstat:
MCargo.lock | 21---------------------
MCargo.toml | 3---
Aluau-shim | 8++++++++
Msrc/inspect.rs | 18------------------
Msrc/parse.rs | 6------
5 files changed, 8 insertions(+), 48 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -659,16 +659,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" [[package]] -name = "libloading" -version = "0.8.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667" -dependencies = [ - "cfg-if", - "windows-targets 0.53.2", -] - -[[package]] name = "libredox" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -726,15 +716,6 @@ dependencies = [ ] [[package]] -name = "luau0-src" -version = "0.12.3+luau663" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76ae337c644bbf86a8d8e9ce3ee023311833d41741baf5e51acc31b37843aba1" -dependencies = [ - "cc", -] - -[[package]] name = "manen" version = "0.1.0" dependencies = [ @@ -792,7 +773,6 @@ dependencies = [ "bstr", "either", "futures-util", - "libloading", "mlua-sys", "mlua_derive", "num-traits", @@ -811,7 +791,6 @@ dependencies = [ "cfg-if", "lua-src", "luajit-src", - "luau0-src", "pkg-config", ] diff --git a/Cargo.toml b/Cargo.toml @@ -12,9 +12,6 @@ lua52 = ["mlua/lua52"] lua51 = ["mlua/lua51"] luajit = ["mlua/luajit"] luajit52 = ["mlua/luajit52"] -luau = ["mlua/luau"] -luau-jit = ["mlua/luau-jit", "luau"] -luau-vector4 = ["mlua/luau-vector4", "luau"] [dependencies] aho-corasick = "1.1.3" diff --git a/luau-shim b/luau-shim @@ -0,0 +1,8 @@ +#!/bin/bash + +# luau-shim -e <rpc code> +code="$2" + +luau << EOF +$code +EOF diff --git a/src/inspect.rs b/src/inspect.rs @@ -187,24 +187,6 @@ pub fn display_basic(value: &LuaValue, colorize: bool) -> String { LuaValue::Integer(i) => Color::LightYellow.paint(i.to_string()), LuaValue::Number(n) => Color::LightYellow.paint(n.to_string()), LuaValue::String(s) => Color::Green.paint(format_string_lua_string(s, colorize)), - #[cfg(feature = "luau")] - LuaValue::Vector(v) => { - let strings: &[AnsiString<'static>] = &[ - Color::Default.paint("<"), - Color::LightYellow.paint(v.x().to_string()), - Color::Default.paint(", "), - Color::LightYellow.paint(v.y().to_string()), - Color::Default.paint(", "), - Color::LightYellow.paint(v.z().to_string()), - #[cfg(feature = "luau-vector4")] - Color::Default.paint(", "), - #[cfg(feature = "luau-vector4")] - Color::LightYellow.paint(v.w().to_string()), - Color::Default.paint(">"), - ]; - - return handle_strings(colorize, AnsiStrings(strings)); - } val => Color::LightGray.paint(val.to_string().unwrap_or_default()), }]; diff --git a/src/parse.rs b/src/parse.rs @@ -36,12 +36,6 @@ pub fn config<'cache>() -> ParserConfig<'cache> { ParserConfig::with_level(LuaLanguageLevel::LuaJIT) } -// not entirely accurate but this will do for now -#[cfg(feature = "luau")] -pub fn config<'cache>() -> ParserConfig<'cache> { - ParserConfig::with_level(LuaLanguageLevel::Lua51) -} - fn node_name(node: &LuaAst) -> Option<&'static str> { match node { LuaAst::LuaChunk(_) => Some("chunk"),