@@ -52,11 +52,12 @@ pub fn add_package_into_database(conn: &Connection,
52
52
rustdoc_status, test_status, license, repository_url, \
53
53
homepage_url, description, description_long, readme, \
54
54
authors, keywords, have_examples, downloads, files, \
55
- doc_targets, is_library, doc_rustc_version \
55
+ doc_targets, is_library, doc_rustc_version, \
56
+ documentation_url \
56
57
) \
57
58
VALUES ( $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, \
58
59
$11, $12, $13, $14, $15, $16, $17, $18, $19, \
59
- $20, $21, $22, $23 \
60
+ $20, $21, $22, $23, $24 \
60
61
) \
61
62
RETURNING id",
62
63
& [ & crate_id,
@@ -81,7 +82,8 @@ pub fn add_package_into_database(conn: &Connection,
81
82
& files,
82
83
& doc_targets. to_json ( ) ,
83
84
& is_library,
84
- & res. rustc_version ] ) ) ;
85
+ & res. rustc_version ,
86
+ & pkg. manifest ( ) . metadata ( ) . documentation ] ) ) ;
85
87
// return id
86
88
rows. get ( 0 ) . get ( 0 )
87
89
@@ -92,7 +94,7 @@ pub fn add_package_into_database(conn: &Connection,
92
94
homepage_url = $12, description = $13, description_long = $14, \
93
95
readme = $15, authors = $16, keywords = $17, have_examples = $18, \
94
96
downloads = $19, files = $20, doc_targets = $21, is_library = $22, \
95
- doc_rustc_version = $23 \
97
+ doc_rustc_version = $23, documentation_url = $24 \
96
98
WHERE crate_id = $1 AND version = $2",
97
99
& [ & crate_id,
98
100
& format ! ( "{}" , pkg. manifest( ) . version( ) ) ,
@@ -116,7 +118,8 @@ pub fn add_package_into_database(conn: &Connection,
116
118
& files,
117
119
& doc_targets. to_json ( ) ,
118
120
& is_library,
119
- & res. rustc_version ] ) ) ;
121
+ & res. rustc_version ,
122
+ & pkg. manifest ( ) . metadata ( ) . documentation ] ) ) ;
120
123
rows. get ( 0 ) . get ( 0 )
121
124
}
122
125
} ;
0 commit comments