@@ -15,10 +15,11 @@ use std::path::Path;
15
15
use utils:: { copy_doc_dir, parse_rustc_version, CargoMetadata } ;
16
16
use Metadata ;
17
17
18
- static USER_AGENT : & str = "docs.rs builder (https://github.com/rust-lang/docs.rs)" ;
19
- static DEFAULT_RUSTWIDE_WORKSPACE : & str = ".rustwide" ;
18
+ const USER_AGENT : & str = "docs.rs builder (https://github.com/rust-lang/docs.rs)" ;
19
+ const DEFAULT_RUSTWIDE_WORKSPACE : & str = ".rustwide" ;
20
20
21
- static TARGETS : & [ & str ] = & [
21
+ const DEFAULT_TARGET : & str = "x86_64-unknown-linux-gnu" ;
22
+ const TARGETS : & [ & str ] = & [
22
23
"i686-apple-darwin" ,
23
24
"i686-pc-windows-msvc" ,
24
25
"i686-unknown-linux-gnu" ,
@@ -27,7 +28,7 @@ static TARGETS: &[&str] = &[
27
28
"x86_64-unknown-linux-gnu" ,
28
29
] ;
29
30
30
- static ESSENTIAL_FILES_VERSIONED : & [ & str ] = & [
31
+ const ESSENTIAL_FILES_VERSIONED : & [ & str ] = & [
31
32
"brush.svg" ,
32
33
"wheel.svg" ,
33
34
"down-arrow.svg" ,
@@ -44,7 +45,7 @@ static ESSENTIAL_FILES_VERSIONED: &[&str] = &[
44
45
"noscript.css" ,
45
46
"rust-logo.png" ,
46
47
] ;
47
- static ESSENTIAL_FILES_UNVERSIONED : & [ & str ] = & [
48
+ const ESSENTIAL_FILES_UNVERSIONED : & [ & str ] = & [
48
49
"FiraSans-Medium.woff" ,
49
50
"FiraSans-Regular.woff" ,
50
51
"SourceCodePro-Regular.woff" ,
@@ -54,8 +55,8 @@ static ESSENTIAL_FILES_UNVERSIONED: &[&str] = &[
54
55
"SourceSerifPro-It.ttf.woff" ,
55
56
] ;
56
57
57
- static DUMMY_CRATE_NAME : & str = "acme-client" ;
58
- static DUMMY_CRATE_VERSION : & str = "0.0.0" ;
58
+ const DUMMY_CRATE_NAME : & str = "acme-client" ;
59
+ const DUMMY_CRATE_VERSION : & str = "0.0.0" ;
59
60
60
61
pub struct RustwideBuilder {
61
62
workspace : Workspace ,
@@ -444,7 +445,7 @@ impl RustwideBuilder {
444
445
docsrs_version : format ! ( "docsrs {}" , :: BUILD_VERSION ) ,
445
446
successful,
446
447
cargo_metadata,
447
- target : target. unwrap_or ( "x86_64-unknown-linux-gnu" ) . to_string ( ) ,
448
+ target : target. unwrap_or ( DEFAULT_TARGET ) . to_string ( ) ,
448
449
} )
449
450
}
450
451
0 commit comments