@@ -12,7 +12,6 @@ macro_rules! get_version_info {
12
12
let patch = std:: env!( "CARGO_PKG_VERSION_PATCH" ) . parse:: <u16 >( ) . unwrap( ) ;
13
13
let crate_name = String :: from( std:: env!( "CARGO_PKG_NAME" ) ) ;
14
14
15
- let host_compiler_version = std:: option_env!( "RUSTC_VERSION" ) . map( str :: to_string) ;
16
15
let host_compiler = std:: option_env!( "RUSTC_RELEASE_CHANNEL" ) . map( str :: to_string) ;
17
16
let commit_hash = std:: option_env!( "GIT_HASH" ) . map( str :: to_string) ;
18
17
let commit_date = std:: option_env!( "COMMIT_DATE" ) . map( str :: to_string) ;
@@ -21,7 +20,6 @@ macro_rules! get_version_info {
21
20
major,
22
21
minor,
23
22
patch,
24
- host_compiler_version,
25
23
host_compiler,
26
24
commit_hash,
27
25
commit_date,
@@ -30,9 +28,8 @@ macro_rules! get_version_info {
30
28
} } ;
31
29
}
32
30
33
- /// This macro can be used in `build.rs` to automatically set the needed
34
- /// environment values, namely `GIT_HASH`, `COMMIT_DATE`, `RUSTC_VERSION` and
35
- /// `RUSTC_RELEASE_CHANNEL`
31
+ /// This macro can be used in `build.rs` to automatically set the needed environment values, namely `GIT_HASH`,
32
+ /// `COMMIT_DATE` and `RUSTC_RELEASE_CHANNEL`
36
33
#[ macro_export]
37
34
macro_rules! setup_version_info {
38
35
( ) => { {
@@ -46,10 +43,6 @@ macro_rules! setup_version_info {
46
43
$crate:: get_commit_date( ) . unwrap_or_default( )
47
44
) ;
48
45
let compiler_version = $crate:: get_compiler_version( ) ;
49
- println!(
50
- "cargo:rustc-env=RUSTC_VERSION={}" ,
51
- compiler_version. as_deref( ) . unwrap_or_default( )
52
- ) ;
53
46
println!(
54
47
"cargo:rustc-env=RUSTC_RELEASE_CHANNEL={}" ,
55
48
$crate:: get_channel( compiler_version)
@@ -62,7 +55,6 @@ pub struct VersionInfo {
62
55
pub major : u8 ,
63
56
pub minor : u8 ,
64
57
pub patch : u16 ,
65
- pub host_compiler_version : Option < String > ,
66
58
pub host_compiler : Option < String > ,
67
59
pub commit_hash : Option < String > ,
68
60
pub commit_date : Option < String > ,
@@ -104,9 +96,6 @@ impl std::fmt::Debug for VersionInfo {
104
96
if let Some ( ref commit_date) = self . commit_date {
105
97
write ! ( f, ", commit_date: \" {}\" " , commit_date. trim( ) ) ?;
106
98
}
107
- if let Some ( ref version) = self . host_compiler_version {
108
- write ! ( f, ", host_compiler_version: \" {}\" " , version. trim( ) ) ?;
109
- }
110
99
if let Some ( ref host_compiler) = self . host_compiler {
111
100
write ! ( f, ", host_compiler: \" {}\" " , host_compiler. trim( ) ) ?;
112
101
}
0 commit comments