@@ -38,6 +38,7 @@ pub struct Config {
38
38
// Time between 'git gc --auto' calls in seconds
39
39
pub ( crate ) registry_gc_interval : u64 ,
40
40
41
+ <<<<<<< HEAD
41
42
// random crate search generates a number of random IDs to
42
43
// efficiently find a random crate with > 100 GH stars.
43
44
// The amount depends on the ratio of crates with >100 stars
@@ -46,6 +47,10 @@ pub struct Config {
46
47
// `500` for a ratio of 7249 over 54k crates.
47
48
// For unit-tests the number has to be higher.
48
49
pub( crate ) random_crate_search_view_size : u32 ,
50
+ =======
51
+ // CDN / caching settings
52
+ pub ( crate ) cache_rustdoc_redirects: u32,
53
+ >>>>>>> 53 d35de ( Set CDN caching headers for rustdoc redirects)
49
54
50
55
// Build params
51
56
pub( crate ) build_attempts : u16 ,
@@ -94,6 +99,7 @@ impl Config {
94
99
registry_gc_interval : env( "DOCSRS_REGISTRY_GC_INTERVAL" , 60 * 60 ) ?,
95
100
96
101
random_crate_search_view_size : env( "DOCSRS_RANDOM_CRATE_SEARCH_VIEW_SIZE" , 500 ) ?,
102
+ cache_rustdoc_redirects : env( "DOCSRS_CACHE_RUSTDOC_REDIRECTS" , 30 * 60 ) ?,
97
103
98
104
rustwide_workspace : env( "CRATESFYI_RUSTWIDE_WORKSPACE" , PathBuf :: from( ".workspace" ) ) ?,
99
105
inside_docker : env( "DOCS_RS_DOCKER" , false ) ?,
0 commit comments