ref keywords, ref readme, ref repository, ref license, ref license_file,
ref categories, ref badges,
} = *manifest.metadata();
- let readme = match *readme {
+ let readme_content = match *readme {
Some(ref readme) => Some(paths::read(&pkg.root().join(readme))?),
None => None,
};
documentation: documentation.clone(),
keywords: keywords.clone(),
categories: categories.clone(),
- readme: readme,
+ readme: readme_content,
+ readme_file: readme.clone(),
repository: repository.clone(),
license: license.clone(),
license_file: license_file.clone(),
pub documentation: Option<String>,
pub homepage: Option<String>,
pub readme: Option<String>,
+ pub readme_file: Option<String>,
pub keywords: Vec<String>,
pub categories: Vec<String>,
pub license: Option<String>,