Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 657a08c

Browse files
authored
Update README.md
1 parent 3a9dfe9 commit 657a08c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Add this to your ``Cargo.toml`` file
1515
crate-type = ["cdylib"] # This tells rust we want to create a .dll file that links to C code.
1616

1717
[dependencies]
18-
rglua = "0.5.0"
18+
rglua = "0.6.0"
1919
```
2020

2121
## Building
@@ -45,6 +45,10 @@ pub extern fn gmod13_open(state: LuaState) -> i32 {
4545
lua_getglobal( state, cstr!("print") );
4646
lua_pushstring( state, cstr!("Hello from rust!") );
4747
lua_call( state, 1, 0 );
48+
49+
// or
50+
51+
rglua::printgm!(state, "Hello world!");
4852
0
4953
}
5054

0 commit comments

Comments
 (0)