This is the Rust API for libopenraw.
It needs libopenraw 0.3 by way of libopenraw-sys
.
Its current implementation is limited to extrating thumbnails.
```Rust use libopenraw as or;
let rawfile = or::RawFile::fromfile(path, or::RawFileType::Unknown) .expect("Couldn't open raw file"); let orientation = rawfile.getorientation(); let thumbnail = rawfile.getthubmnail(160).expect("Couldn't find thumbnail"); // Get the size fo the thumbnail let (x, y) = thumbnail.getdimensions(); let buf = thumbnail.getdata().expect("Couldn't get the data"); ```