Crate extra_embedded_io_adapters

Crate extra_embedded_io_adapters 

Source
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::Write for foreign types (WritableCrc etc.), but also foreign traits for any implementation of embedded_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-io traits (e.g. [ciborium_io::Write])

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§

ForeignWritable
Wrapper around any embedded_io::Write that implements additional Write-ish traits.
WritableCrc
Wrapper around any crc::Digest (typically hashes) that implements embedded_io::Write to send data into a digest.
WritableDigest
Wrapper around any digest::Digest (typically hashes) that implements embedded_io::Write to send data into a digest.