Vendors: remove unused Lua dependencies - #250
Conversation
Lua is no longer used anywhere in the framework or projects: no source file includes lua.h or touches the Lua API. Scripting is JavaScript/TypeScript (libnode/V8). - Drop vendored lua-5.2.1, lua-5.3.6 and lua-5.4.4 - Remove the lua-5.4.4 add_subdirectory from vendors/CMakeLists.txt - Drop vestigial lua54_static links from HogwartsMPClient and M2OClient - Remove the Lua entry from LICENSE.txt and update stale scripting mentions in .cursor/memory-bank docs
|
Important Review skippedToo many files! This PR contains 224 files, which is 124 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (6)
📒 Files selected for processing (224)
You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Remove vendors/sol (sol2 Lua binding library) — referenced by no build file or source - Drop Tracy's optional TracyLua.hpp header and its CMake entry; nothing includes it - Rephrase the FiveM/MTASA comparison in docs/resource_hot_reload.md to not name Lua
Summary
Lua is no longer used anywhere in the framework or projects — no source file includes
lua.hor touches the Lua API (lua_State,luaL_*, …). Scripting is JavaScript/TypeScript (libnode on the server, V8 on the client).lua-5.2.1,lua-5.3.6andlua-5.4.4trees (~110k lines). The 5.2/5.3 copies were not even wired into the build.vendors/sol(sol2 Lua binding library, ~30k lines) — referenced by no build file or source.add_subdirectory(lua-5.4.4)fromvendors/CMakeLists.txt.lua54_staticlinks fromHogwartsMPClientandM2OClient— neither project uses the library.TracyLua.hppheader and its CMake install entry; nothing includes it.LICENSE.txt, update stale Lua-scripting mentions in the.cursor/memory-bankdocs, and rephrase the FiveM/MTASA comparison indocs/resource_hot_reload.mdso it no longer names Lua.Intentionally left untouched (all third-party or about other software's Lua):
TracyProfiler.cpp, which trims callstacks at thelua_pcallsymbol — functional upstream codecode/projects/m3o/CHANGES.md— reverse-engineering notes documenting the game's own embedded Lua VM symbolsTesting
cmake -B buildconfigures and generates cleanly on macOS after the removal.lua/lua_/sol2/sol::finds no remaining first-party references.