libusb 0.2.2

Rust library for accessing USB devices.
extern crate libusb;

fn main() {
  let devs = {
    let mut context = libusb::Context::new().unwrap();
    context.devices().unwrap() // ~ERROR: does not live long enough
  };

  for mut dev in devs.iter() {
    dev.open().unwrap();
  }
}