mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Remove dependency on target_info. (#7964)
Remove dependency on target_info, use standard library instead.
This commit is contained in:
@@ -7,7 +7,6 @@ edition = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
git-version = "0.3.4"
|
||||
target_info = "0.1.0"
|
||||
|
||||
[dev-dependencies]
|
||||
regex = { workspace = true }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use git_version::git_version;
|
||||
use target_info::Target;
|
||||
use std::env::consts;
|
||||
|
||||
/// Returns the current version of this build of Lighthouse.
|
||||
///
|
||||
@@ -45,7 +45,7 @@ pub const COMMIT_PREFIX: &str = git_version!(
|
||||
///
|
||||
/// `Lighthouse/v1.5.1-67da032+/x86_64-linux`
|
||||
pub fn version_with_platform() -> String {
|
||||
format!("{}/{}-{}", VERSION, Target::arch(), Target::os())
|
||||
format!("{}/{}-{}", VERSION, consts::ARCH, consts::OS)
|
||||
}
|
||||
|
||||
/// Returns semantic versioning information only.
|
||||
|
||||
Reference in New Issue
Block a user