Decision Workspace
rust-samp-sdk vs rust-samp-codegen vs rust-samp
Side-by-side comparison of Rust crates
Low-level FFI bindings for the SA-MP AMX virtual machine and open.mp native component ABI. Used internally by `rust-samp`; depend on it directly only if you need raw access without the higher-level macros and lifecycle.
Proc macros (`#[native]`, `initialize_plugin!`, `#[derive(SampPlugin)]`) for the `rust-samp` SDK. Generates the FFI boilerplate that turns Rust methods into Pawn-callable natives and the entry points required by SA-MP and open.mp.
Write SA-MP and open.mp plugins in safe Rust instead of C++. A single binary runs natively on both servers, with proc macros (`#[native]`, `initialize_plugin!`) that hide the FFI boilerplate and ABI-correct marshalling for Linux (Itanium) and Windows (MSVC).
Core Metrics
| rust-samp-sdk | rust-samp-codegen | rust-samp | |
|---|---|---|---|
| Health Score | 64 | 63 | 61 |
| Total Downloads | 617 | 540 | 470 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 13 | 13 | 0 |
| Releases | 15 | 11 | 13 |
| Last Updated | 3d ago | 3d ago | 3d ago |
| Age | 4m | 4m | 4m |
Health Breakdown
Technical Details
| rust-samp-sdk | rust-samp-codegen | rust-samp | |
|---|---|---|---|
| Version | 3.6.0 | 1.6.0 | 3.6.0 |
| Stable (≥1.0) | ✓ Yes | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 3 | 3 | 8 |
| Crate Size | 177KB | 22KB | 86KB |
| Features | 4 | 0 | 5 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | 1.88 | 1.88 | 1.88 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •rust-samp-sdk leads with a health score of 64/100, but none of the options score above 80.