#gmod #garrysmod #module #glua

nightly gmod

A swiss army knife for creating binary modules for Garry's Mod in Rust

30 stable releases (13 major)

16.0.2 Jul 16, 2022
15.0.2 Jul 7, 2022
15.0.0 Feb 10, 2022
14.0.2 Jan 28, 2022
0.1.4 Sep 18, 2021

#576 in Development tools

Download history 28/week @ 2022-11-27 39/week @ 2022-12-04 58/week @ 2022-12-11 82/week @ 2022-12-18 30/week @ 2022-12-25 21/week @ 2023-01-01 36/week @ 2023-01-08 25/week @ 2023-01-15 57/week @ 2023-01-22 78/week @ 2023-01-29 92/week @ 2023-02-05 120/week @ 2023-02-12 116/week @ 2023-02-19 11/week @ 2023-02-26 86/week @ 2023-03-05 25/week @ 2023-03-12

288 downloads per month
Used in gmserverplugin

MIT license

73KB
1.5K SLoC

crates.io

docs.rs

⚙ gmod-rs

A swiss army knife for creating binary modules for Garry's Mod in Rust.

Examples

Click here to see examples.

Nightly requirement

Currently, this crate requires the Rust Nightly compiler to be used.

This is because of the nature of Rust <-> C FFI (which is used extensively in this crate for interfacing with Lua) and the undefined behaviour that occurs when Lua performs long jumps out of functions during errors, or when Rust panics and unwinds out of a foreign stack frame. The C-unwind ABI is used to prevent this undefined behaviour.


lib.rs:

Available Lua Functions

Dependencies

~0.8–1.6MB
~37K SLoC