1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use rustc_version::{Channel, VersionMeta};
use semver;
pub fn version_meta() -> VersionMeta {
VersionMeta {
semver: semver::Version {
major: 1,
minor: 37,
patch: 0,
pre: vec![],
build: vec![],
},
host: "x86_64-unknown-linux-gnu".to_owned(),
short_version_string: "rustc 1.37.0 (eae3437df 2019-08-13)".to_owned(),
commit_hash: Some("eae3437dfe991621e8afdc82734f4a172d7ddf9b".to_owned()),
commit_date: Some("2019-08-13".to_owned()),
build_date: None,
channel: Channel::Stable,
}
}