gphoto2 2.0.0

High-level wrapper for libgphoto2
Documentation
//! Test if the camera can be dropped while there are is still eg. a widget of that camera present

use gphoto2::{Context, Result};

fn main() -> Result<()> {
  env_logger::init();

  let camera = Context::new()?.autodetect_camera()?;

  let widget = camera.config()?;
  let abilities = camera.abilities();

  drop(camera);

  widget.children_count();
  println!("{:?}", abilities);

  Ok(())
}