Crate devs

source ·
Expand description

Linux device discovery library.

At the moment it can enumerate connected devices and provide their sysfs device paths. In the future, it may have more features for filtering and inspecting devices.

Example

let devices = devs::scan().expect("failed to scan for devices");
assert!(devices.len() > 0);

Structs

  • Handle for a connected device.

Functions

  • Scan the Linux sysfs for devices.