Skip to content

Commit

Permalink
Store revision hash in binary
Browse files Browse the repository at this point in the history
  • Loading branch information
kknives committed Dec 28, 2022
1 parent 1edaabd commit e54d96a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ default-run = "spine"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
git-version = "0.3.5"
xdg = "2.4"
toml = "0.5"
serde_json = "1.0"
Expand Down
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ use postcard::{to_slice, from_bytes};
use tokio::net::UnixListener;
use tracing::{info, error};

use git_version::git_version;
#[allow(dead_code)]
const GIT_VERSION: &str = git_version!();

#[tokio::main]
async fn main() {
let subscriber = tracing_subscriber::fmt::Subscriber::builder()
Expand Down

0 comments on commit e54d96a

Please # to comment.