added gitignore for result for nix

tried to build the nix
fixed it as well
This commit is contained in:
2026-07-13 17:50:50 -05:00
parent c64ed1be4e
commit 249a953d3c
6 changed files with 39 additions and 26 deletions
-1
View File
@@ -15,7 +15,6 @@ diesel = { version = "2.2.0", features = [
clap = { version = "4.6.1", features = ["derive", "cargo"] }
tokio = { version = "1.52.3", features = ["full"] }
crypto = { path = "../crypto" }
git-version = "0.3"
keyring = "4.1.4"
colored = "3.1.1"
chrono = "0.4.45"
+17
View File
@@ -0,0 +1,17 @@
use std::process::Command;
fn main() {
let git_version = if let Ok(v) = std::env::var("CARGO_ENV_GIT_VERSION") {
v
} else {
Command::new("git")
.args(["describe", "--always", "--dirty"])
.output()
.map(|output| String::from_utf8_lossy(&output.stdout).trim().to_string())
.unwrap_or_else(|_| "unknown".to_string())
};
println!("cargo:rustc-env=GIT_VERSION={}", git_version);
println!("cargo:rerun-if-changed=.git/HEAD");
}
+1 -2
View File
@@ -4,9 +4,8 @@ use clap::Parser;
use clap::crate_version;
use cli::Cli;
use colored::*;
use git_version::git_version;
const GIT_VERSION: &str = git_version!();
const GIT_VERSION: &str = env!("GIT_VERSION");
fn main() {
let cli = Cli::parse();