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::Version;
pub fn version_meta() -> VersionMeta {
VersionMeta {
semver: Version {
major: 1,
minor: 28,
patch: 0,
pre: vec![Identifier::AlphaNumeric("dev".to_owned()), ],
build: vec![],
},
host: "x86_64-unknown-linux-gnu".to_owned(),
short_version_string: "rustc 1.28.0-dev (b9bf4f162 2018-06-02)".to_owned(),
commit_hash: Some("b9bf4f16298fadf019bc0f67346bcae303ae8d31".to_owned()),
commit_date: Some("2018-06-02".to_owned()),
build_date: None,
channel: Channel::Dev,
}
}