attodmi

Crates.ioattodmi
lib.rsattodmi
version0.3.0
created_at2025-01-07 11:28:56.890207+00
updated_at2025-01-07 14:10:52.438354+00
descriptionExtremely simple code for partially decoding certain kinds of DMI entries from /sys/firmware/dmi/entries
homepage
repositoryhttps://github.com/berke/attodmi
max_upload_size
id1506995
size23,033
Berké Durak (berke)

documentation

README

attodmi

Extremely short code for decoding type 1 and 2 DMI entries from /sys/firmware/dmi/entries (these are Linux sysfs entries)

  • No dependencies
  • Partial decoding of type 1 (System Information) and type 2 (Base Board Information) entries

Use this only if you need to decode some fields from those types of entries with a minimal footprint.

For more serious decoding, see the following crates:

  • dmidecode
  • dmidecode-rs
  • smbios-lib

Test data

Under data/ there are some test files for entries of types 1, 2 and 3.

Repository

https://github.com/berke/attodmi

Changes

  • 0.3.0 - Add ChassisInformation, .from_sysfs and .from_instance methods, add some documentation.
Commit count: 4

cargo fmt