mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Add command-line option for printing version and commit info
This commit is contained in:
parent
bdc719b755
commit
f5b1cd5525
14 changed files with 79 additions and 5 deletions
|
|
@ -19,6 +19,7 @@ pub mod config;
|
|||
mod workers;
|
||||
|
||||
pub const APP_NAME: &str = "aquatic_http: BitTorrent tracker (HTTP over TLS)";
|
||||
pub const APP_VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
const SHARED_CHANNEL_SIZE: usize = 1024;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ use aquatic_http::config::Config;
|
|||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
fn main() {
|
||||
run_app_with_cli_and_config::<Config>(aquatic_http::APP_NAME, aquatic_http::run, None)
|
||||
run_app_with_cli_and_config::<Config>(aquatic_http::APP_NAME, aquatic_http::APP_VERSION, aquatic_http::run, None)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue