Skip to content

Commit

Permalink
improve: version without git tree
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed May 12, 2024
1 parent ac32a48 commit dd75cf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fav_cli/src/bili/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ use clap::{error::ErrorKind, CommandFactory as _, Parser, Subcommand, ValueHint}
use fav_core::FavCoreResult;

const VERSION: &str = const_format::formatcp!(
"{} {}\nRUSC: {} {} {}",
"{} {}\nRUSTC: {} {} {}",
match option_env!("VERGEN_GIT_DESCRIBE") {
Some(var) => var,
_ => concat!(env!("CARGO_PKG_VERSION"), "+"),
_ => concat!(env!("CARGO_PKG_VERSION"), "(CARGO_PKG_VERSION)"),
},
match option_env!("VERGEN_GIT_COMMIT_TIMESTAMP") {
Some(var) => var,
Expand Down

0 comments on commit dd75cf9

Please sign in to comment.