liboptic_edid

Crates.ioliboptic_edid
lib.rsliboptic_edid
version0.1.0
sourcesrc
created_at2024-11-10 08:14:24.117577
updated_at2024-11-10 08:14:24.117577
descriptionParses EDIDs from raw bytes (in 100% Rust)
homepage
repositoryhttps://github.com/onkoe/liboptic
max_upload_size
id1442726
size165,757
Barrett Ray (onkoe)

documentation

README

liboptic_edid

A library crate to parse EDID information.

Currently, this uses EDID v1.4 and does not account for any incompatbilities with earlier versions. However, after running against around 100k EDIDs, there are only about 5% failing to parse, and no panics.

Usage

The only significant type in the library is Edid. Call Edid::new() with your EDID in bytes to get it parsed!

use liboptic_edid::Edid;

// grab the edid file from disk
let data = std::fs::read("tests/assets/dell_s2417dg.raw.input")?;

// and load it into the parser
let parsed_edid = Edid::new(&data)?;
assert_eq!(parsed_edid.checksum, 0x51);

Compatibility

This crate is #![no_std] but still depends on alloc while pisserror does. When I get around to fixing that, that requirement will be dropped. :)

Commit count: 127

cargo fmt