mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
add aquatic crate with master executable, refactor cli_helpers
This commit is contained in:
parent
c69b09ab9c
commit
9efc1fc66a
17 changed files with 243 additions and 62 deletions
|
|
@ -4,7 +4,8 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
|||
|
||||
fn main(){
|
||||
aquatic_cli_helpers::run_app_with_cli_and_config::<aquatic_udp::config::Config>(
|
||||
"aquatic: udp bittorrent tracker",
|
||||
aquatic_udp::APP_NAME,
|
||||
aquatic_udp::run,
|
||||
None
|
||||
)
|
||||
}
|
||||
|
|
@ -15,6 +15,9 @@ use config::Config;
|
|||
use common::State;
|
||||
|
||||
|
||||
pub const APP_NAME: &str = "aquatic_udp: UDP BitTorrent tracker";
|
||||
|
||||
|
||||
pub fn run(config: Config) -> ::anyhow::Result<()> {
|
||||
let state = State::default();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue