Crates.io | devices |
lib.rs | devices |
version | 0.5.0 |
source | src |
created_at | 2022-12-17 19:09:30.957248 |
updated_at | 2023-09-05 14:44:32.695194 |
description | A cross-platform library for retrieving information about connected devices. |
homepage | |
repository | https://github.com/hankjordan/devices |
max_upload_size | |
id | 740033 |
size | 45,079 |
devices
is a cross-platform library for retrieving information about connected devices.
Combined with a library like sysinfo, a more or less complete description of a system's hardware can be gathered.
lspci
and lsusb
required)Wine provides the APIs this library needs to function, but it does not return all the information necessary to build the DeviceInfo
struct. When running on Wine, all device-retrieving methods will return Error::UnsupportedPlatform
.
On Linux, this library works by creating a subprocess to gather device information and parsing the result. Pulling device information from a platform-specific API would be preferred. PRs welcome.
bincode
: Support for bincode v2 encoding and decoding. Enabled by default.serde
: Support for serde serialization and deserialization. Enabled by default.devices
is dual-licensed under MIT and Apache-2.0.