File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/cargo/sources/registry Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,8 @@ impl<'cfg> RegistryIndex<'cfg> {
291
291
where
292
292
' a : ' b ,
293
293
{
294
+ let bindeps = self . config . cli_unstable ( ) . bindeps ;
295
+
294
296
let source_id = self . source_id ;
295
297
let config = self . config ;
296
298
@@ -322,6 +324,9 @@ impl<'cfg> RegistryIndex<'cfg> {
322
324
} ,
323
325
)
324
326
. filter ( move |is| {
327
+ if is. v == 3 && bindeps {
328
+ return true ;
329
+ }
325
330
if is. v > INDEX_V_MAX {
326
331
debug ! (
327
332
"unsupported schema version {} ({} {})" ,
@@ -714,7 +719,7 @@ impl<'a> SummariesCache<'a> {
714
719
. get ( ..4 )
715
720
. ok_or_else ( || anyhow:: anyhow!( "cache expected 4 bytes for index version" ) ) ?;
716
721
let index_v = u32:: from_le_bytes ( index_v_bytes. try_into ( ) . unwrap ( ) ) ;
717
- if index_v != INDEX_V_MAX {
722
+ if index_v != INDEX_V_MAX && index_v != 3 {
718
723
bail ! (
719
724
"index format version {} doesn't match the version I know ({})" ,
720
725
index_v,
You can’t perform that action at this time.
0 commit comments