sysfs-serde

Crates.iosysfs-serde
lib.rssysfs-serde
version0.2.3
sourcesrc
created_at2020-09-06 12:21:34.461458
updated_at2021-03-28 14:52:28.601683
descriptionThis crate Deserializes most common SysFS path's to Rust data types
homepagehttps://gitlab.com/mike7b4/sysfs-serde.git
repositoryhttps://gitlab.com/mike7b4/sysfs-serde.git
max_upload_size
id285396
size27,655
(mike7b4)

documentation

README

sysfs-serde

This crate try to Deserialize SysFs device path's to Rust data types. The Rust data types can then be serialized to JSON, TOML, YAML etc...

Note that unknown fields will be stored in raw format in a HashMap<String, String>.

This crate can be used to lookup USB/PCI devices.

For example this crate is currently used by usbapi-rs to find USB devices on a Linux Host.

See a documentation and example how to use this crate.

Supported platform

  • Linux

Feel free to add other OS'es.

Supported sysfs paths

See SysFsType and documentation what path's is supported.

Dependencies

  • log
  • serde (features = "serde")
Commit count: 24

cargo fmt