You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,11 @@
1
1
# rglua
2
2
3
3
This is a Rust library that contains bindings for garrysmod binary module creation as well as more user-friendly interfaces to interact with lua states.
4
+
4
5
More information on binary modules: https://wiki.facepunch.com/gmod/Creating_Binary_Modules
5
6
7
+
An example module made with rglua is below
8
+
6
9
## How to build
7
10
8
11
Add this to your Cargo.toml
@@ -17,14 +20,16 @@ rglua = { git = "https://github.com/Vurv78/rglua", branch = "main" } # This give
17
20
Make sure you build to 32 bit if you want to use the module with srcds / on a local server.
Also do this if you have never compiled to 32 bit, to get rustup to install 32 bit versions of everything you need
21
24
``rustup add target i686-pc-windows-msvc``
22
25
23
26
More Info and example module (Not made with rglua): https://github.com/Vurv78/gmod-rust-test
24
27
28
+
Note:
29
+
I have never gotten anyone to test this on linux or OSX, It should work just fine however. Travis Ci Should give you an idea on how this runs on linux at least.
30
+
25
31
## Example Module
26
32
```rust
27
-
// This code may not work for you because of printgm. In that case, don't import it and take away the instances of it until #1 is fixed.
0 commit comments