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
sampis a glue between crates described below (that's what you need).samp-codegengenerates rawextern "C"functions and does whole nasty job.samp-sdkcontains all types to work with amx.
usage
- install rust compiler (supports only
i686os versions because of samp server arch). - add in your
Cargo.tomlthis:
[]
= ["cdylib"] # or dylib
[]
= "0.2.5"
- write your first plugin
examples
- simple memcache plugin in
plugin-examplefolder. - your
lib.rsfile
use *; // export most useful types
use ; // codegen macros
;
initialize_plugin!;