@@ -49,11 +49,11 @@ pub fn add_package_into_database(conn: &Connection,
49
49
rustdoc_status, test_status, license, repository_url, \
50
50
homepage_url, description, description_long, readme, \
51
51
authors, keywords, have_examples, downloads, files, \
52
- doc_targets, is_library \
52
+ doc_targets, is_library, doc_rustc_version \
53
53
) \
54
54
VALUES ( $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, \
55
55
$11, $12, $13, $14, $15, $16, $17, $18, $19, \
56
- $20, $21, $22 \
56
+ $20, $21, $22, $23 \
57
57
) \
58
58
RETURNING id",
59
59
& [ & crate_id,
@@ -77,7 +77,8 @@ pub fn add_package_into_database(conn: &Connection,
77
77
& downloads,
78
78
& files,
79
79
& doc_targets. to_json ( ) ,
80
- & is_library] ) ) ;
80
+ & is_library,
81
+ & res. rustc_version ] ) ) ;
81
82
// return id
82
83
rows. get ( 0 ) . get ( 0 )
83
84
@@ -88,6 +89,7 @@ pub fn add_package_into_database(conn: &Connection,
88
89
homepage_url = $12, description = $13, description_long = $14, \
89
90
readme = $15, authors = $16, keywords = $17, have_examples = $18, \
90
91
downloads = $19, files = $20, doc_targets = $21, is_library = $22 \
92
+ doc_rustc_version = $23 \
91
93
WHERE crate_id = $1 AND version = $2",
92
94
& [ & crate_id,
93
95
& format ! ( "{}" , pkg. manifest( ) . version( ) ) ,
@@ -110,7 +112,7 @@ pub fn add_package_into_database(conn: &Connection,
110
112
& downloads,
111
113
& files,
112
114
& doc_targets. to_json ( ) ,
113
- & is_library ] ) ) ;
115
+ & res . rustc_version ] ) ) ;
114
116
rows. get ( 0 ) . get ( 0 )
115
117
}
116
118
} ;
0 commit comments