22 lines
553 B
Rust
22 lines
553 B
Rust
//! Binary entrypoint for the `aria2-rust-pro` CLI.
|
|
|
|
#![forbid(unsafe_code)]
|
|
#![doc = "Binary entrypoint for the aria2-rust-pro CLI."]
|
|
|
|
use aria2_rust_pro_cli::run_from_env;
|
|
use aria2_rust_pro_compat as _;
|
|
use aria2_rust_pro_core as _;
|
|
use aria2_rust_pro_protocol as _;
|
|
use aria2_rust_pro_rpc as _;
|
|
use aria2_rust_pro_storage as _;
|
|
#[cfg(test)]
|
|
use ssh2 as _;
|
|
|
|
/// Runs the CLI process and exits with a non-zero status on failure.
|
|
fn main() {
|
|
if let Err(error) = run_from_env() {
|
|
eprintln!("{error}");
|
|
std::process::exit(1);
|
|
}
|
|
}
|