title: Is there any way to tell Cargo to run its tests on the main thread?
body: <p>I have been trying to build an OpenGL-based image processing library with <a href="https://github.com/PistonDevelopers/glfw-rs" rel="noreferrer">GLFW</a>, and need it to be testable. Unfortunately, I ran into <a href="https://github.com/rust-lang/cargo/issues/3927" rel="noreferrer">this</a> bug - GLFW needs its initialization functions to be called from the main thread, but Cargo tests are run on a background thread.</p>