From cd1c2ed31e8f187dc9f9501b18ca1b8174781965 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Thu, 29 Oct 2020 07:23:34 -0700 Subject: [PATCH] build: Add the 'v' prefix when using the crate version Signed-off-by: Bo Chen --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index b96136ffa..566f287c3 100644 --- a/build.rs +++ b/build.rs @@ -9,7 +9,7 @@ extern crate clap; use std::process::Command; fn main() { - let mut version = crate_version!().to_string(); + let mut version = "v".to_owned() + crate_version!(); if let Ok(git_out) = Command::new("git").args(&["describe", "--dirty"]).output() { if git_out.status.success() {