Rust Mobile Telemetry

Overview
Rust Mobile Telemetry is a specialized crate for developers building mobile libraries in Rust. It efficiently bridges the gap between Rust's structured logging ecosystem and the native logging facilities of Android (Logcat) and iOS (OSLog/Unified Logging System).
The Status Quo
When running Rust code via FFI on mobile, println! often disappears into the void or causes performance issues. Developers struggle to get crash reports or debug logs from the Rust layer into their standard mobile monitoring tools (like Crashlytics).
Market Proposition
Native-speed logging bridge.
- Zero-Allocation: Designed to be extremely lightweight to avoid overhead in the performance-critical Rust layer.
- Rich Context: Maps Rust log levels (Error, Warn, Info) correctly to valid Android/iOS log priorities.
- Crash Reporting: Hooks into panic handlers to ensure Rust panics are reported to the native layer before the app crash.
Usage
// In your lib.rs
#[no_mangle]
pub extern "C" fn init_logger() {
rust_mobile_telemetry::init(LevelFilter::Debug).unwrap();
log::info!("Rust logging initialized!");
}
Hashtags
#Rust #MobileDev #Android #iOS #FFI #Telemetry