Skip to content

Commit 81d786e

Browse files
authored
Merge pull request #44 from dtolnay/descriptions
Add 'description' 'homepage' 'documentation' 'repository' to versions.csv
2 parents 6fa8a53 + 9f7cfe8 commit 81d786e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ pub struct DbDump {
209209
/// <td>has_lib</td>
210210
/// <td>bin_names</td>
211211
/// <td>edition</td>
212+
/// <td>description</td>
213+
/// <td>homepage</td>
214+
/// <td>documentation</td>
215+
/// <td>repository</td>
212216
/// </tr></table>
213217
pub versions: Vec<versions::Row>,
214218
}

src/versions.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ pub struct Row {
4242
pub has_lib: bool,
4343
pub bin_names: Vec<String>,
4444
pub edition: Option<u16>,
45+
pub description: Option<String>,
46+
pub homepage: Option<String>,
47+
pub documentation: Option<String>,
48+
pub repository: Option<String>,
4549
}
4650

4751
impl<'de> Deserialize<'de> for Row {
@@ -82,6 +86,10 @@ impl<'de> Deserialize<'de> for Row {
8286
#[serde(default, deserialize_with = "bin_names")]
8387
bin_names: Vec<String>,
8488
edition: Option<u16>,
89+
description: Option<String>,
90+
homepage: Option<String>,
91+
documentation: Option<String>,
92+
repository: Option<String>,
8593
}
8694

8795
let Row {
@@ -103,6 +111,10 @@ impl<'de> Deserialize<'de> for Row {
103111
has_lib,
104112
bin_names,
105113
edition,
114+
description,
115+
homepage,
116+
documentation,
117+
repository,
106118
} = Row::deserialize(deserializer)?;
107119
Ok(Self {
108120
id,
@@ -122,6 +134,10 @@ impl<'de> Deserialize<'de> for Row {
122134
has_lib,
123135
bin_names,
124136
edition,
137+
description,
138+
homepage,
139+
documentation,
140+
repository,
125141
})
126142
}
127143
}

0 commit comments

Comments
 (0)