Send servo version in mozbrowser error.

Also moved servo version to util for usage by the --version flag
and for sending the version to browser.html with mozbrowsererror
This commit is contained in:
Connor Brewster 2016-07-01 15:27:57 -06:00
parent f2d798232f
commit ed678cb7f1
4 changed files with 9 additions and 1 deletions

View file

@ -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"))
}