1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21

            use rustc_version::{Channel, VersionMeta};
            use semver::{Identifier, Version};
            
            /// Returns the `rustc` SemVer version and additional metadata¬
            /// like the git short hash and build date.¬
            pub fn version_meta() -> VersionMeta {
                VersionMeta {
                    semver: Version {
                        major: 1,
                        minor: 2,
                        patch: 0,
                        pre: vec![],
                        build: vec![],
                    },
                    git_short_hash: "082e47636".to_owned(),
                    date: "2015-08-03".to_owned(),
                    channel: Channel::Stable,
                }
            }