mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +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
|
|
@ -8,7 +8,8 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
|||
|
||||
fn main(){
|
||||
run_app_with_cli_and_config::<Config>(
|
||||
"aquatic: webtorrent tracker",
|
||||
aquatic_ws::run
|
||||
aquatic_ws::APP_NAME,
|
||||
aquatic_ws::run,
|
||||
None
|
||||
)
|
||||
}
|
||||
|
|
@ -20,6 +20,9 @@ use common::*;
|
|||
use config::Config;
|
||||
|
||||
|
||||
pub const APP_NAME: &str = "aquatic_ws: WebTorrent tracker";
|
||||
|
||||
|
||||
pub fn run(config: Config) -> anyhow::Result<()> {
|
||||
let opt_tls_acceptor = create_tls_acceptor(&config)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue