Skip to main content

documented_target_name

Function documented_target_name 

Source
fn documented_target_name(package: &Value) -> Option<String>
Expand description

Pick the target cargo doc documents for a package: the lib-like target when present (lib/rlib/dylib/cdylib/staticlib/proc-macro), otherwise the first bin. When a package has both a lib and a same-named bin (apps/soma), rustdoc documents the lib, so lib-first matches the output on disk.