Game rendering middleware in Rust