pub repository: Option<String>, // url
pub documentation: Option<String>, // url
pub badges: BTreeMap<String, BTreeMap<String, String>>,
+ pub links: Option<String>,
}
#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
let ManifestMetadata {
ref authors, ref description, ref homepage, ref documentation,
ref keywords, ref readme, ref repository, ref license, ref license_file,
- ref categories, ref badges,
+ ref categories, ref badges, ref links,
} = *manifest.metadata();
let readme_content = match *readme {
Some(ref readme) => Some(paths::read(&pkg.root().join(readme))?),
license: license.clone(),
license_file: license_file.clone(),
badges: badges.clone(),
+ links: links.clone(),
}, tarball);
match publish {
keywords: project.keywords.clone().unwrap_or_default(),
categories: project.categories.clone().unwrap_or_default(),
badges: me.badges.clone().unwrap_or_default(),
+ links: project.links.clone(),
};
let workspace_config = match (me.workspace.as_ref(),
pub license_file: Option<String>,
pub repository: Option<String>,
pub badges: BTreeMap<String, BTreeMap<String, String>>,
+ #[serde(default)]
+ pub links: Option<String>,
}
#[derive(Serialize)]