I'm sure this is a problem a lot of people have, but I could not find any clear suggestion of a best practice.
Often you have a README.md that is included as documentation in lib.rs. This means that the links in the file must work both withn reading the README.md on Github, and when it is included in the documentation.
The only solution I found up to know is to link directly to docs.rs, as in
[`MemCase`]: https://docs.rs/epserde/latest/epserde/deser/mem_case/struct.MemCase.html
The problem is that now locally-generated documentation will point to possibly older documentation in docs.rs.
What are you guys doing? I've seen projects with two identical copy of the package documentation, one in lib.rs and one in README.md, with local and non-local links, respectively, but it does not seem a good practice.