rust-samp 3.4.0

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).
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "rust-samp"
version = "3.4.0"
authors = [
    "ZOTTCE <zottce@gmail.com>",
    "NullSablex <https://github.com/NullSablex>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "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)."
homepage = "https://github.com/NullSablex/rust-samp"
documentation = "https://rust-samp.nullsablex.com/"
readme = "README.md"
keywords = [
    "samp",
    "open-mp",
    "pawn",
    "plugin",
    "gamedev",
]
categories = [
    "external-ffi-bindings",
    "game-development",
    "api-bindings",
]
license = "MIT"
repository = "https://github.com/NullSablex/rust-samp"

[package.metadata.docs.rs]
features = [
    "encoding",
    "compression",
]
default-target = "i686-pc-windows-msvc"

[package.metadata.samp]
uid = "0x29c7c5bc76c43d5d"

[features]
compression = ["dep:flate2"]
debug = ["samp-sdk/debug"]
default = []
encoding = ["samp-sdk/encoding"]
samp-only = ["samp-sdk/samp-only"]

[lib]
name = "samp"
path = "src/lib.rs"

[dependencies.fern]
version = "0.7"

[dependencies.flate2]
version = "1.0"
features = ["rust_backend"]
optional = true
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.samp-codegen]
version = "1.4.0"
package = "rust-samp-codegen"

[dependencies.samp-sdk]
version = "3.4.0"
package = "rust-samp-sdk"

[dependencies.time]
version = "0.3.47"
features = [
    "local-offset",
    "formatting",
    "macros",
]

[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies.retour]
version = "=0.4.0-alpha.4"