mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
d551e63b29
commit
4784564d5c
3 changed files with 15 additions and 11 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue