Skip to content

Commit 924d3dd

Browse files
committed
Update README and fix version bounds in rockspecs; release 2.1.1
1 parent b39c4bc commit 924d3dd

4 files changed

Lines changed: 56 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ Formats not listed above are not subject to this limitation, as they either do n
5353

5454
Lua 5.0 is not supported, as vstruct makes heavy use of features introduced in 5.1.
5555

56-
Lua 5.3 has not been tested but is expected to break at least some features due to changes in number handling and in the math library.
57-
5856
LuaJIT 2.0b7 has a bug in the code generator that affects vstruct. This is fixed in 2.0b9. If you need to run vstruct in 2.0b7, you will need to disable JIT compilation for the `m.read` function:
5957

6058
jit.off(require("vstruct.io.m").read, true)
@@ -76,7 +74,7 @@ luarocks install vstruct
7674

7775
#### From Source ####
7876

79-
vstruct is a pure-lua module, and as such requires no seperate build step; it can be installed as-is. It supports Lua 5.1 and 5.2 and luaJIT, automatically detecting which one you are using as needed; the only difference in installation procedures between these is where you install it to.
77+
vstruct is a pure-lua module, and as such requires no seperate build step; it can be installed as-is. It automatically detects which version of Lua you're using it and enables compatibility shims as needed, so one installation can be shared by multiple versions of Lua/LuaJIT.
8078

8179
The initializer is `vstruct/init.lua`, so it should be installed in a way that means `require "vstruct"` will load that file, and that `require "vstruct.foo"` will load `vstruct/foo.lua`. In a default install of Lua 5.1 on Linux, you can do this simply by copying the `vstruct/` directory from the vstruct distribution into any of these directories:
8280

vstruct-2.0.1-1.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = {
99
homepage = "https://github.com/ToxicFrog/vstruct",
1010
}
1111
dependencies = {
12-
"lua >= 5.1"
12+
"lua >= 5.1, < 5.3"
1313
}
1414
build = {
1515
type = "builtin",

vstruct-2.1.0-1.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = {
99
homepage = "https://github.com/ToxicFrog/vstruct",
1010
}
1111
dependencies = {
12-
"lua >= 5.3"
12+
"lua >= 5.1, <= 5.3"
1313
}
1414
build = {
1515
type = "builtin",

vstruct-2.1.1-1.rockspec

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
package = "vstruct"
2+
version = "2.1.1-1"
3+
source = {
4+
url = "git+https://github.com/ToxicFrog/vstruct.git",
5+
tag = "v2.1.1"
6+
}
7+
description = {
8+
summary = "Lua library to manipulate binary data",
9+
homepage = "https://github.com/ToxicFrog/vstruct",
10+
}
11+
dependencies = {
12+
"lua >= 5.1, <= 5.3"
13+
}
14+
build = {
15+
type = "builtin",
16+
modules = {
17+
["vstruct.api"] = "api.lua",
18+
["vstruct.ast"] = "ast.lua",
19+
["vstruct.ast.Bitpack"] = "ast/Bitpack.lua",
20+
["vstruct.ast.IO"] = "ast/IO.lua",
21+
["vstruct.ast.List"] = "ast/List.lua",
22+
["vstruct.ast.Name"] = "ast/Name.lua",
23+
["vstruct.ast.Node"] = "ast/Node.lua",
24+
["vstruct.ast.Repeat"] = "ast/Repeat.lua",
25+
["vstruct.ast.Root"] = "ast/Root.lua",
26+
["vstruct.ast.Table"] = "ast/Table.lua",
27+
["vstruct.compat1x"] = "compat1x.lua",
28+
["vstruct.cursor"] = "cursor.lua",
29+
["vstruct.frexp"] = "frexp.lua",
30+
["vstruct"] = "init.lua",
31+
["vstruct.io"] = "io.lua",
32+
["vstruct.io.a"] = "io/a.lua",
33+
["vstruct.io.b"] = "io/b.lua",
34+
["vstruct.io.bigendian"] = "io/bigendian.lua",
35+
["vstruct.io.c"] = "io/c.lua",
36+
["vstruct.io.defaults"] = "io/defaults.lua",
37+
["vstruct.io.endianness"] = "io/endianness.lua",
38+
["vstruct.io.f"] = "io/f.lua",
39+
["vstruct.io.hostendian"] = "io/hostendian.lua",
40+
["vstruct.io.i"] = "io/i.lua",
41+
["vstruct.io.littleendian"] = "io/littleendian.lua",
42+
["vstruct.io.m"] = "io/m.lua",
43+
["vstruct.io.p"] = "io/p.lua",
44+
["vstruct.io.s"] = "io/s.lua",
45+
["vstruct.io.seekb"] = "io/seekb.lua",
46+
["vstruct.io.seekf"] = "io/seekf.lua",
47+
["vstruct.io.seekto"] = "io/seekto.lua",
48+
["vstruct.io.u"] = "io/u.lua",
49+
["vstruct.io.x"] = "io/x.lua",
50+
["vstruct.io.z"] = "io/z.lua",
51+
["vstruct.lexer"] = "lexer.lua",
52+
}
53+
}

0 commit comments

Comments
 (0)