1 unstable release

0.1.0 Dec 2, 2023

#1607 in Hardware support

MPL-2.0 license

11KB
204 lines

devs

Rust workflow badge

Linux device discovery crate, like libudev or libsystemd's sd-device.

License

This work is distributed under the terms of the Mozilla Public License (MPL) version 2.0. See LICENSE for details.


lib.rs:

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);

No runtime deps