1
Fork 0

rustdoc: sort deprecated items lower in search

serialize `q` (`itemPaths`) sparsely
overall 4% reduction in search index size
This commit is contained in:
Peter Jaszkowiak 2023-02-03 00:08:57 -07:00
parent 6c991b0740
commit d2e4b59e60
5 changed files with 50 additions and 9 deletions

View file

@ -107,6 +107,7 @@ pub(crate) struct IndexItem {
pub(crate) parent_idx: Option<usize>,
pub(crate) search_type: Option<IndexItemFunctionType>,
pub(crate) aliases: Box<[Symbol]>,
pub(crate) deprecation: Option<Deprecation>,
}
/// A type used for the search index.