//! FFI-safe type conversions and helpers.
use ;
/// Convert a C string pointer to a Rust `&str`.
///
/// # Safety
/// `ptr` must be a valid, null-terminated C string or NULL.
pub unsafe
/// Allocate a C string from a Rust string.
/// The caller must free the result with `weby_free_string`.
pub
/// Free a string previously returned by webylib FFI functions.
///
/// # Safety
/// `ptr` must have been allocated by this library (e.g., from `weby_wallet_balance`)
/// or be NULL (no-op).
pub unsafe extern "C"