https://github.com/servo/core-graphics-rs/pull/77 was a work-in-progress that looked like a reasonable solution.