Skip to content

Commit df26065

Browse files
robbielymannatecraddock
authored andcommittedMar 11, 2025
readme: lua_wrapper -> zlua
changes the example code along with the package + module name change
1 parent 3ca96d7 commit df26065

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎readme.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ Then in your `build.zig` file you can use the dependency.
4646
pub fn build(b: *std.Build) void {
4747
// ... snip ...
4848
49-
const lua_dep = b.dependency("lua_wrapper", .{
49+
const lua_dep = b.dependency("zlua", .{
5050
.target = target,
5151
.optimize = optimize,
5252
});
5353
5454
// ... snip ...
5555
56-
// add the lua_wrapper module and lua artifact
57-
exe.root_module.addImport("lua_wrapper", lua_dep.module("lua_wrapper"));
56+
// add the zlua module and lua artifact
57+
exe.root_module.addImport("zlua", lua_dep.module("zlua"));
5858
5959
}
6060
```
@@ -70,21 +70,21 @@ There are currently three additional options that can be passed to `b.dependency
7070
For example, here is a `b.dependency()` call that and links against a shared Lua 5.2 library:
7171

7272
```zig
73-
const lua_wrapper = b.dependency("lua_wrapper", .{
73+
const zlua = b.dependency("zlua", .{
7474
.target = target,
7575
.optimize = optimize,
7676
.lang = .lua52,
7777
.shared = true,
7878
});
7979
``````
8080
81-
The `lua_wrapper` module will now be available in your code. Here is a simple example that pushes and inspects an integer on the Lua stack:
81+
The `zlua` module will now be available in your code. Here is a simple example that pushes and inspects an integer on the Lua stack:
8282
8383
```zig
8484
const std = @import("std");
85-
const lua_wrapper = @import("lua_wrapper");
85+
const zlua = @import("zlua");
8686
87-
const Lua = lua_wrapper.Lua;
87+
const Lua = zlua.Lua;
8888
8989
pub fn main() anyerror!void {
9090
// Create an allocator

0 commit comments

Comments
 (0)
Please sign in to comment.