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

Commit c2b2872

Browse files
authored
Explain building better
1 parent 3c5310d commit c2b2872

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ rglua = { git = "https://github.com/Vurv78/rglua", branch = "main" }
1919
```
2020

2121
## Building
22-
Make sure you build to 32 bit if you want to use the module with srcds / on a local server.
22+
After [installing rust, ](https://www.rust-lang.org/tools/install) just run ``cargo build --release``.
23+
24+
If you are building to 32 bit for srcds or non x64 garrysmod, first do:
25+
``rustup target add i686-pc-windows-msvc`` in order to make rust download any 32 bit libraries needed to compile this.
26+
27+
And finally run:
2328
``cargo build --release --target=i686-pc-windows-msvc``
2429

25-
Also do this if you have never compiled to 32 bit, to get rustup to install 32 bit versions of everything you need
30+
Also do this if you have never compiled to 32 bit, to get rustup to install 32 bit versions of everything you need
2631
``rustup target add i686-pc-windows-msvc``
2732

2833
## Notes

0 commit comments

Comments
 (0)