Skip to content

Commit 64fafd0

Browse files
authored
Merge pull request #101 from alexschrod/show-max-version
Show max version instead of newest version.
2 parents b98bb2a + fd93a7d commit 64fafd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/crates.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ struct Crate {
1616
name: String,
1717
#[serde(rename = "newest_version")]
1818
version: String,
19+
max_stable_version: String,
1920
#[serde(rename = "updated_at")]
2021
updated: String,
2122
downloads: u64,
@@ -54,7 +55,7 @@ pub async fn search(args: Arc<Args>) -> Result<(), Error> {
5455
e.title(&krate.name)
5556
.url(format!("https://crates.io/crates/{}", krate.id))
5657
.description(&krate.description)
57-
.field("version", &krate.version, true)
58+
.field("version", &krate.max_stable_version, true)
5859
.field("downloads", &krate.downloads, true)
5960
.timestamp(krate.updated.as_str())
6061
});

0 commit comments

Comments
 (0)