mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic_ws: add Config, use in many places; use cli_helpers for cli
Also add mimalloc
This commit is contained in:
parent
0c8160e3d6
commit
21048727db
6 changed files with 189 additions and 20 deletions
|
|
@ -1,6 +1,14 @@
|
|||
use aquatic_ws;
|
||||
use cli_helpers;
|
||||
|
||||
|
||||
#[global_allocator]
|
||||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
|
||||
fn main(){
|
||||
aquatic_ws::run();
|
||||
cli_helpers::run_app_with_cli_and_config::<aquatic_ws::config::Config>(
|
||||
"aquatic: webtorrent tracker",
|
||||
aquatic_ws::run,
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue