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
|
|
@ -18,6 +18,7 @@ use common::*;
|
|||
use config::Config;
|
||||
|
||||
pub const APP_NAME: &str = "aquatic_ws: WebTorrent tracker";
|
||||
pub const APP_VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
pub const SHARED_IN_CHANNEL_SIZE: usize = 1024;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ use aquatic_ws::config::Config;
|
|||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
fn main() {
|
||||
run_app_with_cli_and_config::<Config>(aquatic_ws::APP_NAME, aquatic_ws::run, None)
|
||||
run_app_with_cli_and_config::<Config>(aquatic_ws::APP_NAME, aquatic_ws::APP_VERSION, aquatic_ws::run, None)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue