rust-samp 3.5.0-rc.2

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
//! Internal log macros with the SDK prefix.
//!
//! Avoids hardcoded `"[rust-samp]"` scattered across the crate — changing the
//! prefix in the future is a single edit in [`SDK_LOG_PREFIX`]. For now only
//! `sdk_warn!` and `sdk_info!` are used; add `sdk_error!` if a real need arises.

/// Prefix applied to all SDK log messages.
pub(crate) const SDK_LOG_PREFIX: &str = "[rust-samp]";

/// Equivalent to `log::warn!` but prepends [`SDK_LOG_PREFIX`].
macro_rules! sdk_warn {
    ($($arg:tt)*) => {
        log::warn!("{} {}", $crate::macros::SDK_LOG_PREFIX, format_args!($($arg)*))
    };
}

/// Equivalent to `log::info!` but prepends [`SDK_LOG_PREFIX`].
macro_rules! sdk_info {
    ($($arg:tt)*) => {
        log::info!("{} {}", $crate::macros::SDK_LOG_PREFIX, format_args!($($arg)*))
    };
}

pub(crate) use {sdk_info, sdk_warn};