aboutsummaryrefslogtreecommitdiff
path: root/src/util/version.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/version.rs')
-rw-r--r--src/util/version.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/version.rs b/src/util/version.rs
index b515dccc..2b2ea271 100644
--- a/src/util/version.rs
+++ b/src/util/version.rs
@@ -26,3 +26,7 @@ pub fn init_version(version: &'static str) {
pub fn init_features(features: &'static [&'static str]) {
FEATURES.store(Some(Arc::new(features)));
}
+
+pub fn rust_version() -> &'static str {
+ env!("RUSTC_VERSION")
+}