Skip to main content

from_rustdoc_with

Function from_rustdoc_with 

Source
pub fn from_rustdoc_with(
    doc: &Value,
    source_root: &Path,
    dependencies: &BTreeMap<String, Surface>,
) -> Surface
Expand description

from_rustdoc for a crate that re-exports items of other crates.

dependencies holds the surface of each such crate under its rustdoc crate name (see reexported_crates). A re-exported item registers under the re-exporting path with the defining crate’s kind, fingerprint, signature and docs, and so does everything under it (a module’s items, a type’s inherent members), exactly as if it were defined there. The defining crate’s own paths are not added. A pub use of a crate absent from dependencies registers nothing, as in from_rustdoc.