@@ -921,10 +921,10 @@ impl RustwideBuilder {
921
921
922
922
for format_version in [ format_version, RustdocJsonFormatVersion :: Latest ] {
923
923
let _span = info_span ! ( "store_json" , %format_version) . entered ( ) ;
924
- self . storage . store_one (
925
- rustdoc_json_path ( name , version , target , format_version ) ,
926
- compressed_json. clone ( ) ,
927
- ) ?;
924
+ let path = rustdoc_json_path ( name , version , target , format_version ) ;
925
+
926
+ self . storage . store_one ( & path , compressed_json. clone ( ) ) ? ;
927
+ self . storage . set_public_access ( & path , true ) ?;
928
928
}
929
929
930
930
Ok ( ( ) )
@@ -1478,12 +1478,14 @@ mod tests {
1478
1478
// other targets too
1479
1479
for target in DEFAULT_TARGETS {
1480
1480
// check if rustdoc json files exist for all targets
1481
- assert ! ( storage . exists ( & rustdoc_json_path(
1481
+ let path = rustdoc_json_path (
1482
1482
crate_,
1483
1483
version,
1484
1484
target,
1485
- RustdocJsonFormatVersion :: Latest
1486
- ) ) ?) ;
1485
+ RustdocJsonFormatVersion :: Latest ,
1486
+ ) ;
1487
+ assert ! ( storage. exists( & path) ?) ;
1488
+ assert ! ( storage. get_public_access( & path) ?) ;
1487
1489
1488
1490
let json_prefix = format ! ( "rustdoc-json/{crate_}/{version}/{target}/" ) ;
1489
1491
let mut json_files: Vec < _ > = storage
@@ -1492,8 +1494,6 @@ mod tests {
1492
1494
. map ( |f| f. strip_prefix ( & json_prefix) . unwrap ( ) . to_owned ( ) )
1493
1495
. collect ( ) ;
1494
1496
json_files. sort ( ) ;
1495
- dbg ! ( & json_prefix) ;
1496
- dbg ! ( & json_files) ;
1497
1497
assert_eq ! (
1498
1498
json_files,
1499
1499
vec![
0 commit comments