| Crates.io | iracing-broadcast |
| lib.rs | iracing-broadcast |
| version | 0.1.0 |
| created_at | 2025-11-29 19:43:06.29546+00 |
| updated_at | 2025-11-29 19:43:06.29546+00 |
| description | Rust interface for iRacing Broadcast Message API. |
| homepage | |
| repository | https://github.com/racedirector/iracing-broadcast.rs |
| max_upload_size | |
| id | 1957344 |
| size | 30,382 |
A lightweight Rust crate for sending iRacing broadcast window messages. It encodes the simulator's documented broadcast protocol into typed enums so you can trigger camera switches, replay searches, telemetry capture, and more from your Rust application.
use iracing_broadcast::{BroadcastMessage, Client, PitCommandMode};
fn main() -> Result<(), iracing_broadcast::BroadcastError> {
let client = Client::new()?;
// Request a tearoff from the pit crew.
client.send_message(BroadcastMessage::PitCommand(PitCommandMode::Tearoff))?;
Ok(())
}
The broadcast client is only available when targeting Windows because the simulator communicates through Win32 window messages.