This is my attempt to make this crate usable on no_std.
I've splitted this changes into several commits to make it easier to review:
Introduce trait JpegRead as an replacement for std::io::Read. On stdJpegRead is implemented for every std::io:::Read which should allow users to use every type implementing Read, too.
Some use relate changes that #196 didn't cover
Integer only replacement for f32::ceil based code that isn't available in ´core´
An ugly replacement for f32::fract. Maybe someone has a better idea to implement this for no_std.
An integration test that works on no_std. The integration test suite heavily depends on file system ops and the png crate. Having at least one test that works on no_std is better than nothing....
Add a std feature and use it as a marker for std/no_std.
This is my attempt to make this crate usable on no_std.
I've splitted this changes into several commits to make it easier to review:
JpegRead
as an replacement for std::io::Read. Onstd
JpegRead
is implemented for everystd::io:::Read
which should allow users to use every type implementingRead
, too.use
relate changes that #196 didn't coverstd
feature and use it as a marker for std/no_std.This should fix #199