Description
In gtk-rs, a lot of crates are provided and have been split into 3 repositories: core
, gtk3
and gtk4
. Both gtk3
and gtk4
link to core
using --extern-html-root-url
, however it doesn't allow to look for items in core
from neither of them.
The idea would be to query the search-index.js
file from rustdoc front-end. However it brings the potential following issues:
- The file could not be found.
- It forces us to refresh the crate search filter (because we have new ones).
- It allows to load an unknown JS file and hope for the best (which is problematic in term of security).
Another option could be to simply generate the search index for those crates and use the --extern-html-root-url
option to allow to go to the item from the search result. It would force us to add an option to only generate a search index for a crate and not its documentation though.
Out of the two appraoches, I think the second option is better.
However, do we want such a feature? Would it be useful to enough users to make this development/maintenance "worth it"? What do you think @rust-lang/rustdoc ?
cc @sdroege