Function cargo_include_licenses::search_for_licenses[][src]

pub fn search_for_licenses(
    package: &Package
) -> Option<(PathBuf, Box<dyn Iterator<Item = PathBuf>>)>
Expand description

Tries to find all license-related files for a given package

Returns

  • The local root path of the crate (obtained by path)
  • An iterator over all potential license-related files