Lux vs Luarocks.
Lux has a mission to maintain feature parity with Luarocks. Here you will find how Lux differs from Luarocks.
YesNoPartial
| Feature | Lux | LuaRocks |
|---|---|---|
| Projects and dependencies | ||
| Project format | TOML or Lua | Lua |
| Add or remove dependencies from the CLI | Yes | No |
| Install several packages in one command | Yes | No |
| Install packages using version constraints | Yes | No |
| Lockfile with integrity checks | Yes | Basic, versions only |
| Git dependencies in local projects | Yes | No |
| Local path dependencies | Yes | No |
| Multiple projects in one workspace | Yes | No |
| Vendor sources for offline use | Yes | No |
| Load packages from multiple install trees | No | Yes |
| Builds and runtimes | ||
| Parallel builds and installs | Yes | No |
| Default build specs | Yes | Yes |
| Custom build backends | Compatibility layer[1] | Yes |
| rust-mlua build spec | Built in | External backend |
| tree-sitter parser build spec | Built in | External backend |
| pkg-config detection | Yes | No |
| Automatic Lua detection and installation | Yes | No |
| Resolve multiple runtime versions | Yes | Yes |
| Luau support | Yes | No |
| Load rockspecs and manifests in a sandbox | Yes | No |
| Sandbox build execution | Opt-in[4] | No |
| Toolchain | ||
| Formatting | Yes | No |
| Linting | Yes | No |
| Static type checking | Yes | No |
| Generate .luarc.json from dependencies | Yes | No |
| Run tests with busted | Yes | Yes |
| Packaging | ||
| Install prebuilt binary rocks | Yes | Yes |
| Pack and upload prebuilt binary rocks | Yes | Yes |
| Luarocks.org manifest namespaces | Yes | Yes |
| Luarocks.org dev packages | Yes | Yes |
| Distribute install-tree archives | Yes | No |
| Distribute static binaries | Yes | No |
| Versioning | SemVer[2] | Arbitrary |
| CVS, Mercurial, SVN, and SSCM sources | No[3] | Yes |
Notes
- Custom build backends in Lux go through a compatibility layer that uses Luarocks as a backend.
- Lux aims to be compatible with the Luarocks version parser, which allows arbitrary components. Anything after the third component (except the specrev) is treated as a prerelease/build version, and versions with and without prerelease components can still be compared.
- You Aren't Gonna Need It. CVS, Mercurial, SVN, and SSCM sources are intentionally out of scope.
- Sandbox build execution is opt-in via the [build.runner] config.