-
Notifications
You must be signed in to change notification settings - Fork 302
Open
Description
I currently struggle to maintain a big set of hacks to merge rustdoc builds across a crate graph by parsing search index javascript files. It breaks on nearly every rust release. According to the text of RFC3662, Meta does exactly the same thing and struggles just as much.
That RFC, which dramatically improves this situation, was implemented more than a year ago now. Has there been any progress switching doc builds to use the unstable rustdoc --merge=... flag? There is no mention of this in the prelude, so I guess no. Is it likely you'll accept a PR that implements this or are the required changes too sweeping and you're planning to do it yourselves?
I note that:
- A merged rustdoc build needs a target set as input. You could have a
rust_doc_bundletarget but it's probably not that useful. - Therefore the final merge step should be BXL. It would take a target set, request a doc build for each with
--merge=none, then specify an action to--merge=finalizewith all the targets' outputs. - An important feature is the treatment of crates not in the requested target set. I handle this by adding a flag
"-Zcrate-attr=doc(html_root_url = \"{}\")".format(docs_rs_url)on third-party dependencies via a macro. Might be nice if this were not something Buck users would have to spend 6 hours figuring out on their own. Perhaps an attr on rust_library that reindeer populates automatically.
Metadata
Metadata
Assignees
Labels
No labels