@@ -39,6 +39,8 @@ pub struct Release {
39
39
description : Option < String > ,
40
40
target_name : Option < String > ,
41
41
rustdoc_status : bool ,
42
+ build_status : bool ,
43
+ is_library : bool ,
42
44
deployment_pending : bool ,
43
45
pub ( crate ) build_time : DateTime < Utc > ,
44
46
stars : i32 ,
@@ -83,7 +85,9 @@ pub(crate) fn get_releases(
83
85
releases.target_name,
84
86
releases.rustdoc_status,
85
87
builds.build_time,
86
- repositories.stars
88
+ repositories.stars,
89
+ releases.build_status,
90
+ releases.is_library
87
91
FROM crates
88
92
{1}
89
93
INNER JOIN builds ON releases.id = builds.rid
@@ -115,6 +119,8 @@ pub(crate) fn get_releases(
115
119
build_time : row. get ( 5 ) ,
116
120
deployment_pending : crate_invalidation_pending ( & row. get ( 5 ) ) ,
117
121
stars : row. get :: < _ , Option < i32 > > ( 6 ) . unwrap_or ( 0 ) ,
122
+ build_status : row. get ( 7 ) ,
123
+ is_library : row. get ( 8 ) ,
118
124
} )
119
125
. collect ( )
120
126
}
@@ -206,7 +212,9 @@ fn get_search_results(
206
212
builds.build_time,
207
213
releases.target_name,
208
214
releases.rustdoc_status,
209
- repositories.stars
215
+ repositories.stars,
216
+ releases.build_status,
217
+ releases.is_library
210
218
211
219
FROM crates
212
220
INNER JOIN releases ON crates.latest_version_id = releases.id
@@ -231,6 +239,8 @@ fn get_search_results(
231
239
target_name : row. get ( "target_name" ) ,
232
240
rustdoc_status : row. get ( "rustdoc_status" ) ,
233
241
stars : stars. unwrap_or ( 0 ) ,
242
+ build_status : row. get ( "build_status" ) ,
243
+ is_library : row. get ( "is_library" ) ,
234
244
} ,
235
245
)
236
246
} )
0 commit comments