Skip to content(if available)orjump to list(if available)

Lux: A luxurious package manager for Lua

ModernMech

This is interesting but I feel like a lot of these Rust-inspired package managers are a little... too inspired by Rust. This project for instance uses .toml as a config file format, presumably because that's what Cargo does.

But I think for this project in particular, Lua for the config files would have been a better choice!

I think that Lua tries to be a configuration language, and in fact Luarocks uses "rockspec" for their config, which is syntactically Lua. Lux claims to be inspired by Luarocks, and yet they chose to use toml over lua for config. I'm wondering why? What was wrong with lua that made toml a better choice?

edit: Okay, I've found more information where they say they support both formats... which, I don't know if that's the right call? Seems like going with one or the other is better from a project management standpoint, although I can see why they want to give users the option.

> Not everyone may want to migrate (nor use) the TOML system for describing a project. For this reason, I’d had liked Lux to support a rockspec file alongside the TOML file (similar to the old project.rockspec format). This has finally been implemented! By creating a file called extra.rockspec in the project root, you will instruct Lux to merge the TOML and the rockspec together when performing any sort of operation.