Skip to content

Commit 974f698

Browse files
Merge #1421
1421: #1001 Add a comment to fields used by shields.io r=carols10cents Fix for #1001. I guessed on the formatting of the comment. I can easily change it if needed.
2 parents a27c704 + 3250194 commit 974f698

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/views/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ pub struct EncodableCrate {
9191
pub badges: Option<Vec<EncodableBadge>>,
9292
#[serde(with = "::util::rfc3339")]
9393
pub created_at: NaiveDateTime,
94+
// NOTE: Used by shields.io, altering `downloads` requires a PR with shields.io
9495
pub downloads: i32,
9596
pub recent_downloads: Option<i64>,
97+
// NOTE: Used by shields.io, altering `max_version` requires a PR with shields.io
9698
pub max_version: String,
9799
pub description: Option<String>,
98100
pub homepage: Option<String>,
@@ -183,9 +185,11 @@ pub struct EncodableVersion {
183185
pub updated_at: NaiveDateTime,
184186
#[serde(with = "::util::rfc3339")]
185187
pub created_at: NaiveDateTime,
188+
// NOTE: Used by shields.io, altering `downloads` requires a PR with shields.io
186189
pub downloads: i32,
187190
pub features: HashMap<String, Vec<String>>,
188191
pub yanked: bool,
192+
// NOTE: Used by shields.io, altering `license` requires a PR with shields.io
189193
pub license: Option<String>,
190194
pub links: EncodableVersionLinks,
191195
}

0 commit comments

Comments
 (0)