docs.rs failed to build samp-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
samp is a tool to develop plugins for samp servers written in rust.
project structure
samp
is a glue between crates described below (that's what you need).samp-codegen
generates rawextern "C"
functions and does whole nasty job.samp-sdk
contains all types to work with amx.
usage
- install rust compiler (supports only
i686
os versions because of samp server arch). - add in your
Cargo.toml
this:
[]
= ["cdylib"] # or dylib
[]
= "0.2.5"
- write your first plugin
examples
- simple memcache plugin in
plugin-example
folder. - your
lib.rs
file
use *; // export most useful types
use ; // codegen macros
;
initialize_plugin!;