cargo::core::compiler

Function descriptive_pkg_name

source
fn descriptive_pkg_name(
    name: &str,
    target: &Target,
    mode: &CompileMode,
) -> String
Expand description

Provides a package name with descriptive target information, e.g., ‘foo (bin “bar” test)’, ‘foo (lib doctest)’.