Expand description
Types that encapsulate foreign types into embedded-io writers.
Exceeding what the embedded-io-adapters (which
gets co-developed with [embedded-io]) does,
- it goes both ways: It implements
embedded_io::Writefor foreign types (WritableCrcetc.), but also foreign traits for any implementation ofembedded_io::Write(ForeignWritable). - it is not too picky in what it implements:
- it interfaces with crates that are not stable (e.g.
digest::Digest) - it interfaces with crates that are more bespoke but which would still not implement
embedded-iotraits (e.g. [ciborium_io::Write])
- it interfaces with crates that are not stable (e.g.
This library is not intended to be part of any other crate’s public dependencies, and will do breaking releases whenever its own public dependencies change. Users who want to support different versions of other crates may need to resort to using multiple versions of this crate.
Structs§
- Foreign
Writable - Wrapper around any
embedded_io::Writethat implements additional Write-ish traits. - Writable
Crc - Wrapper around any
crc::Digest(typically hashes) that implementsembedded_io::Writeto send data into a digest. - Writable
Digest - Wrapper around any
digest::Digest(typically hashes) that implementsembedded_io::Writeto send data into a digest.