mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Factor vergen stuff to a build-info crate
This commit is contained in:
parent
86ce843f3d
commit
c608b3f9b5
15 changed files with 396 additions and 159 deletions
|
@ -473,7 +473,9 @@ impl Segment {
|
|||
create_all_stats(index_scheduler.into(), auth_controller.into(), &AuthFilter::default())
|
||||
{
|
||||
// Replace the version number with the prototype name if any.
|
||||
let version = if let Some(prototype) = crate::prototype_name() {
|
||||
let version = if let Some(prototype) = build_info::DescribeResult::from_build()
|
||||
.and_then(|describe| describe.as_prototype())
|
||||
{
|
||||
prototype
|
||||
} else {
|
||||
env!("CARGO_PKG_VERSION")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue