added git version in code at build
This commit is contained in:
parent
3648993e36
commit
fc8dcdaf84
@ -38,4 +38,4 @@ zmq = "0.9"
|
||||
|
||||
[profile.release]
|
||||
debug = false
|
||||
opt-level = 3
|
||||
opt-level = "z"
|
@ -4,6 +4,7 @@ use crate::utils::*;
|
||||
use chrono::prelude::*;
|
||||
use chrono::Duration;
|
||||
use clap::{Arg, ArgMatches, Command};
|
||||
use git_version::git_version;
|
||||
use ipnet::IpNet;
|
||||
use nix::sys::inotify::{AddWatchFlags, InitFlags, Inotify, WatchDescriptor};
|
||||
use regex::Regex;
|
||||
@ -13,6 +14,7 @@ use std::collections::HashMap;
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::path::Path;
|
||||
|
||||
pub const GIT_VERSION: &str = git_version!();
|
||||
const MASTERSERVER: &str = "ipbl.paulbsd.com";
|
||||
const ZMQSUBSCRIPTION: &str = "ipbl";
|
||||
const CONFIG_RETRY: u64 = 10;
|
||||
|
Loading…
Reference in New Issue
Block a user