There are two strange things I found in intra-doc links.
First, when I use
[`String`] or even
[`std::string::String`] in my doc, the generated intra-doc links is to
alloc::string::String. I know maybe
std re-exports some structs in
core, etc. but for a beginner who does not know well about rust, he may be confused when clicking the link to
String and get an unfamiliar path. So what can I do if I want to link to
Second, I have crate
bar. If I list
bar's dependencies, then the intra-doc links to
foo::SomeStruct is right, but if I list
bar's dev-dependencies instead, intra-doc links cannot generate the correct link. I think this stiuation is quite common when we are writing documents for a proc macro crate, which provides derive macros for another crate.