Add support for LuaRocks

See https://luarocks.org/modules/gvx/bitser
This commit is contained in:
Jasmijn Wellner 2025-01-01 15:08:44 +01:00
parent 4545391591
commit 8ccc5fb206
4 changed files with 13 additions and 5 deletions

4
.gitignore vendored
View File

@ -13,3 +13,7 @@ luacov.*.out
class.lua
slither.lua
classic.lua
# luarocks build artifacs
lua_install
*.rock

View File

@ -2,6 +2,10 @@
Serializes and deserializes Lua values with LuaJIT.
```bash
luarocks install --server=https://luarocks.org/manifests/gvx bitser
```
```lua
local bitser = require 'bitser'

View File

@ -1,7 +1,7 @@
package = "bitser"
version = "1.1-1"
version = "1.1-2"
source = {
url = "https://github.com/gvx/bitser.git",
url = "git+https://github.com/gvx/bitser.git",
tag = "v1.1"
}
description = {
@ -16,7 +16,7 @@ description = {
license = "ISC"
}
dependencies = {
"luajit <= 2.1"
-- "luajit <= 2.1"
}
build = {
type = "builtin",

View File

@ -1,7 +1,7 @@
package = "bitser"
version = "1.2-0"
source = {
url = "https://github.com/gvx/bitser.git",
url = "git+https://github.com/gvx/bitser.git",
tag = "v1.2"
}
description = {
@ -16,7 +16,7 @@ description = {
license = "ISC"
}
dependencies = {
"luajit <= 2.1"
--"luajit <= 2.1"
}
build = {
type = "builtin",