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 class.lua
slither.lua slither.lua
classic.lua classic.lua
# luarocks build artifacs
lua_install
*.rock

View File

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

View File

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

View File

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