I want to take the "deprecated" and "experimental" badges that appear on items in the module-level docs and cause them to show up in search results. having never touched rustdoc before, I assume that I'll first have to add a new item-level field to the JSON search index, then populate this field from whatever parsed representation already detects deprecated/experimental status, then update the search results page to use this field. Does that sound accurate? Would anyone like to point me to the right files to get started with?
@bstrie do you happen to know a deprecated function in libstd I could use to test the current behavior?
I don't know much about search but most of the logic is in https://github.com/rust-lang/rust/blob/master/src/librustdoc/html/static/search.js I believe
the case that I particularly care about is https://doc.rust-lang.org/std/index.html?search=max ; the
std::*::MAX consts are all deprecated, whereas
*::MAX are their replacements
Last updated: Oct 11 2021 at 22:34 UTC