1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pub use libusbk_sys as ffi;
pub use crate::device::Device;
pub use crate::device_handle::{DeviceHandle, DriverId};
pub use crate::device_list::DeviceList;
pub use crate::error::{Error, Result};
pub use crate::hotplug::{has_hotplug, Hotplug, HotplugBuilder};
pub use crate::version::{version, LibraryVersion};
mod device;
mod device_handle;
mod device_list;
mod error;
mod hotplug;
mod version;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn basic_list() {
let dl = DeviceList::new().unwrap();
let _count = dl.length().unwrap();
}
}