Expand description
Rustdoc writes aut two kinds of shared files:
- Static files, which are embedded in the rustdoc binary and are written with a
filename that includes a hash of their contents. These will always have a new
URL if the contents change, so they are safe to cache with the
Cache-Control: immutable
directive. They are written under the static.files/ directory and are written when –emit-type is empty (default) or contains “toolchain-specific”. If using the –static-root-path flag, it should point to a URL path prefix where each of these filenames can be fetched. - Invocation specific files. These are generated based on the crate(s) being
documented. Their filenames need to be predictable without knowing their
contents, so they do not include a hash in their filename and are not safe to
cache with
Cache-Control: immutable
. They include the contents of the –resource-suffix flag and are emitted when –emit-type is empty (default) or contains “invocation-specific”.
Structs§
- Final serialized form of the alias impl
- Data for an aliased type.
- The
impl_
contains data that’s used to figure out if an alias will work, and to generate the HTML at the end. - Contains pre-rendered contents to insert into the CCI template
- Source files directory tree
- Part 🔒A piece of one of the shared artifacts for documentation (search index, sources, alias list, etc.)
- Paths (relative to the doc root) and their pre-merge contents
- Sources 🔒
- Collect the list of aliased types and their aliases. https://github.com/search?q=repo%3Arust-lang%2Frust+[RUSTDOCIMPL]+type.impl&type=code
Enums§
- Version for the format of the crate-info file.
Traits§
- CciPart 🔒Wrapper trait for
Part<T, U>
Functions§
- Create all parents
- Reads
crates.js
, which seems like the best place to obtain the list of externally documented crates if the index page was disabled when documenting the deps. - Returns a blank template unless we could find one to append to
- Writes files that are written directly to the
--out-dir
, without the prefix from the current crate. These are the rendered cross-crate files that encode info from multiple crates (e.g. search index), and the static files. - info from this crate and the –include-info-json’d crates
- Write the search description shards to disk
- Writes the static files, the style files, and the css extensions. Have to be careful about these, because they write to the root out dir.