Skip to content

Commit 2178d25

Browse files
committed
Initial commit
0 parents  commit 2178d25

Some content is hidden

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

95 files changed

+36028
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

Cargo.lock

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
name = "lua53-rs"
3+
version = "0.1.0"
4+
edition = "2021"
5+
build = "build/build.rs"
6+
7+
[[bin]]
8+
name = "lua"
9+
test = false
10+
bench = false
11+
12+
[dependencies]
13+
libc = "0.2"
14+
15+
[build-dependencies]
16+
cc = "1.0"

build/build.rs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
fn main() {
2+
cc::Build::new()
3+
.define("LUA_USE_APICHECK", None)
4+
.define("LUA_USE_CTYPE", None)
5+
.define("LUA_USE_POSIX", None)
6+
.file("build/lapi.c")
7+
.file("build/lauxlib.c")
8+
.file("build/lbaselib.c")
9+
.file("build/lbitlib.c")
10+
.file("build/lcode.c")
11+
.file("build/lcorolib.c")
12+
.file("build/ldblib.c")
13+
.file("build/ldebug.c")
14+
.file("build/ldo.c")
15+
.file("build/ldump.c")
16+
.file("build/lfunc.c")
17+
.file("build/lgc.c")
18+
.file("build/linit.c")
19+
.file("build/liolib.c")
20+
.file("build/llex.c")
21+
.file("build/lmathlib.c")
22+
.file("build/lmem.c")
23+
.file("build/loadlib.c")
24+
.file("build/lobject.c")
25+
.file("build/lopcodes.c")
26+
.file("build/loslib.c")
27+
.file("build/lparser.c")
28+
.file("build/lstate.c")
29+
.file("build/lstring.c")
30+
.file("build/lstrlib.c")
31+
.file("build/ltable.c")
32+
.file("build/ltablib.c")
33+
.file("build/ltm.c")
34+
.file("build/lua.c")
35+
.file("build/lundump.c")
36+
.file("build/lutf8lib.c")
37+
.file("build/lvm.c")
38+
.file("build/lzio.c")
39+
.compile("lua");
40+
}

0 commit comments

Comments
 (0)