mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Drop vergen_git2 dependency (#36439)
Manually call `git rev-parse --short HEAD` to retrieve the commit hash, instead of using Emitter from vergen_git2. This helps remove dependencies and shorten compile time. Testing: It doesn't require tests because it is a refactoring for removing dependencies Fixes: #36435 Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
This commit is contained in:
parent
c16ca22970
commit
e6595619e1
4 changed files with 22 additions and 125 deletions
|
@ -97,11 +97,7 @@ pub fn init_tracing(filter_directives: Option<&str>) {
|
|||
}
|
||||
|
||||
pub fn servo_version() -> String {
|
||||
format!(
|
||||
"Servo {}-{}",
|
||||
env!("CARGO_PKG_VERSION"),
|
||||
env!("VERGEN_GIT_SHA")
|
||||
)
|
||||
format!("Servo {}-{}", env!("CARGO_PKG_VERSION"), env!("GIT_SHA"))
|
||||
}
|
||||
|
||||
/// Plumbs tracing spans into HiTrace, with the following caveats:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue