Lux vs Luarocks.

Lux has a mission to maintain feature parity with Luarocks. Here you will find how Lux differs from Luarocks.

YesNoPartial
FeatureLuxLuaRocks
Projects and dependencies
Project formatTOML or LuaLua
Add or remove dependencies from the CLIYesNo
Install several packages in one commandYesNo
Install packages using version constraintsYesNo
Lockfile with integrity checksYesBasic, versions only
Git dependencies in local projectsYesNo
Local path dependenciesYesNo
Multiple projects in one workspaceYesNo
Vendor sources for offline useYesNo
Load packages from multiple install treesNoYes
Builds and runtimes
Parallel builds and installsYesNo
Default build specsYesYes
Custom build backendsCompatibility layer[1]Yes
rust-mlua build specBuilt inExternal backend
tree-sitter parser build specBuilt inExternal backend
pkg-config detectionYesNo
Automatic Lua detection and installationYesNo
Resolve multiple runtime versionsYesYes
Luau supportYesNo
Load rockspecs and manifests in a sandboxYesNo
Sandbox build executionOpt-in[4]No
Toolchain
FormattingYesNo
LintingYesNo
Static type checkingYesNo
Generate .luarc.json from dependenciesYesNo
Run tests with bustedYesYes
Packaging
Install prebuilt binary rocksYesYes
Pack and upload prebuilt binary rocksYesYes
Luarocks.org manifest namespacesYesYes
Luarocks.org dev packagesYesYes
Distribute install-tree archivesYesNo
Distribute static binariesYesNo
VersioningSemVer[2]Arbitrary
CVS, Mercurial, SVN, and SSCM sourcesNo[3]Yes

Notes

  1. Custom build backends in Lux go through a compatibility layer that uses Luarocks as a backend.
  2. 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.
  3. You Aren't Gonna Need It. CVS, Mercurial, SVN, and SSCM sources are intentionally out of scope.
  4. Sandbox build execution is opt-in via the [build.runner] config.