diff options
Diffstat (limited to 'components/util/lib.rs')
-rw-r--r-- | components/util/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/util/lib.rs b/components/util/lib.rs index eb71fdf41f1..84c86a982ed 100644 --- a/components/util/lib.rs +++ b/components/util/lib.rs @@ -64,3 +64,7 @@ pub fn arc_ptr_eq<T: 'static>(a: &Arc<T>, b: &Arc<T>) -> bool { let b: &T = &**b; (a as *const T) == (b as *const T) } + +pub fn servo_version() -> &'static str { + concat!("Servo ", env!("CARGO_PKG_VERSION"), env!("GIT_INFO")) +} |