Skip to content

#1001 Add a comment to fields used by shields.io #1421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/views/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ pub struct EncodableCrate {
pub badges: Option<Vec<EncodableBadge>>,
#[serde(with = "::util::rfc3339")]
pub created_at: NaiveDateTime,
// NOTE: Used by shields.io, altering `downloads` requires a PR with shields.io
pub downloads: i32,
pub recent_downloads: Option<i64>,
// NOTE: Used by shields.io, altering `max_version` requires a PR with shields.io
pub max_version: String,
pub description: Option<String>,
pub homepage: Option<String>,
Expand Down Expand Up @@ -183,9 +185,11 @@ pub struct EncodableVersion {
pub updated_at: NaiveDateTime,
#[serde(with = "::util::rfc3339")]
pub created_at: NaiveDateTime,
// NOTE: Used by shields.io, altering `downloads` requires a PR with shields.io
pub downloads: i32,
pub features: HashMap<String, Vec<String>>,
pub yanked: bool,
// NOTE: Used by shields.io, altering `license` requires a PR with shields.io
pub license: Option<String>,
pub links: EncodableVersionLinks,
}
Expand Down