Skip to content

Commit

Permalink
output: add documentation, readme and homepage fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Nov 3, 2024
1 parent f87624b commit 6cbc556
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/repo/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ pub struct Output {
pub benches: usize,
pub authors: Vec<String>,
pub description: String,
pub documentation: Option<String>,
pub readme: Option<String>,
pub homepage: Option<String>,
pub keywords: Vec<String>,
pub categories: Vec<String>,
pub os_categories: Vec<String>,
Expand All @@ -32,6 +35,9 @@ impl Output {
benches: pkg.targets.iter().filter(|t| t.is_bench()).count(),
authors: pkg.authors.clone(),
description: pkg.description.clone().unwrap_or_default(),
documentation: pkg.documentation.clone(),
readme: pkg.readme.as_deref().map(|p| p.to_string()),
homepage: pkg.homepage.clone(),
keywords: pkg.keywords.clone(),
categories: pkg.categories.clone(),
os_categories: pkg
Expand Down

0 comments on commit 6cbc556

Please sign in to comment.