Crates.io
: https://crates.io/crates/embed-doc-image
Docs.rs
: embed_doc_image - Rust
I recently ran into this issue when I wanted to include some images of geometric conventions in a scientific library. It annoyed me to no end that there is no proper way to embed images so that they work both in local docs and docs.rs. This crate strings together some workarounds and packages them up into a palatable solution that hopefully can tide us over until rustdoc
gets proper support for this.