move servo_version from config crate to ports/libsimpleservo/api/src/lib.rs and duplicate in ports/winit/main2.rs

Signed-off-by: s-maurice <51819025+s-maurice@users.noreply.github.com>
This commit is contained in:
s-maurice 2022-03-06 01:43:46 +01:00
parent d551e63b29
commit 4784564d5c
3 changed files with 15 additions and 11 deletions

View file

@ -18,12 +18,3 @@ pub mod prefs;
pub mod basedir;
#[allow(unsafe_code)]
pub mod opts;
pub fn servo_version() -> String {
let cargo_version = env!("CARGO_PKG_VERSION");
let git_info = option_env!("GIT_INFO");
match git_info {
Some(info) => format!("Servo {}{}", cargo_version, info),
None => format!("Servo {}", cargo_version),
}
}