Function apply_license::render_license_text [−][src]
pub fn render_license_text<S: Borrow<str>>(
licenses: &[&License],
authors: &[S]
) -> Result<BTreeMap<PathBuf, String>, Error>
Given a list of authors and SPDX license identifiers, returns a map from file name to contents.
If only one license file is present, writes the file name will be LICENSE
. If two or more
licenses are present, then each file will be named LICENSE-{id}
(e.g., LICENSE-MIT
).