Skip to main content

is_hashed_doc_file

Function is_hashed_doc_file 

Source
fn is_hashed_doc_file(path: &str) -> bool
Expand description

rustdoc 产物里文件名带内容哈希、内容永不变化的文件:

  • /doc/static.files/<名字>-<8 位十六进制>.<扩展名>(样式、脚本、字体,如 rustdoc-0c87338a.css、SourceSerif4-Regular-6b053e98.ttf.woff2);
  • /doc/search.index/<列>/<十六进制>.js(搜索索引分片,按内容哈希命名)。

/doc/search.index/root.js、doc-shell.js、theme.css 等固定文件名不在此列。