Skip to content

Commit 7d075a0

Browse files
natecraddockNathan Craddock
authored andcommitted
Remove vendored lua libraries
Use the Zig package manager to download the sources for Lua 5.1 through Lua 5.4. Luau still needs to be done this way. The LuaVersion enum strings are changed to remove the _ characters, this is a breaking change. Also makes the tests rely on the module rather than the raw source file. Not sure if this is a good idea yet, just testing some things. This links the compiled lua library to the ziglua module so it doesn't need to be linked manually in other projects.
1 parent 11cfaae commit 7d075a0

File tree

264 files changed

+203
-92995
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+203
-92995
lines changed

build.zig

Lines changed: 161 additions & 170 deletions
Large diffs are not rendered by default.

build.zig.zon

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
.{
22
.name = "ziglua",
3-
.description = "Zig bindings for the Lua C API",
43
.version = "0.1.0",
54
.paths = .{ "" },
5+
6+
.dependencies = .{
7+
.lua51 = .{
8+
.url = "https://www.lua.org/ftp/lua-5.1.5.tar.gz",
9+
.hash = "1220089572fb380fb4679b16421fc53851a8226bcebc9ce44463a0f4ada5c9bd737f",
10+
},
11+
12+
.lua52 = .{
13+
.url = "https://www.lua.org/ftp/lua-5.2.4.tar.gz",
14+
.hash = "1220d5b2b39738f0644d9ed5b7431973f1a16b937ef86d4cf85887ef3e9fda7a3379",
15+
},
16+
17+
.lua53 = .{
18+
.url = "https://www.lua.org/ftp/lua-5.3.6.tar.gz",
19+
.hash = "1220937a223531ef6b3fea8f653dc135310b0e84805e7efa148870191f5ab915c828",
20+
},
21+
22+
.lua54 = .{
23+
.url = "https://www.lua.org/ftp/lua-5.4.6.tar.gz",
24+
.hash = "1220f93ada1fa077ab096bf88a5b159ad421dbf6a478edec78ddb186d0c21d3476d9",
25+
},
26+
},
627
}

lib/lua-5.1/COPYRIGHT

Lines changed: 0 additions & 34 deletions
This file was deleted.

lib/lua-5.1/Makefile

Lines changed: 0 additions & 128 deletions
This file was deleted.

lib/lua-5.1/README

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)