Consider https://github.com/cmr/hgl-rs/blob/master/.travis.yml. It installs `glfw-rs` manually just so it can be available when building the examples, but otherwise nothing depends on them.