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

Commit 58db989

Browse files
authored
Update README.md
1 parent 2d59339 commit 58db989

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
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.6.0"
18+
rglua = "0.6.1"
1919
```
2020

2121
## Building
@@ -28,9 +28,7 @@ cargo build --release --target=i686-pc-windows-msvc
2828
```
2929

3030
## Notes
31-
* I have never tested this outside of Windows and will not be able to.
32-
If there are any issues on other platforms, I will gladly accept any PRs you may make but I won't be able to help you myself.
33-
31+
* This will most likely not work on other platforms and I am not able to vouch/test them.
3432
* The nature of this crate is super unsafe and sort of defeats the purpose of rust's safety because of the interfacing you require to unsafe C code and the nature of linking to them.
3533

3634
## Example Module
@@ -39,9 +37,9 @@ use rglua::prelude::*;
3937

4038
#[no_mangle]
4139
pub extern fn gmod13_open(state: LuaState) -> i32 {
42-
lua_getglobal( state, cstr!("print") );
43-
lua_pushstring( state, cstr!("Hello from rust!") );
44-
lua_call( state, 1, 0 );
40+
lua_getglobal(state, cstr!("print"));
41+
lua_pushstring(state, cstr!("Hello from rust!"));
42+
lua_call(state, 1, 0);
4543

4644
// or
4745
printgm!(state, "Hello world!");

0 commit comments

Comments
 (0)