2020-01-04 18:58:42 -08:00
|
|
|
#![deny(clippy::all, clippy::pedantic, clippy::restriction)]
|
|
|
|
#![allow(
|
|
|
|
clippy::else_if_without_else,
|
|
|
|
clippy::enum_glob_use,
|
2020-02-01 12:30:35 -08:00
|
|
|
clippy::float_arithmetic,
|
|
|
|
clippy::float_cmp,
|
2020-01-04 18:58:42 -08:00
|
|
|
clippy::implicit_return,
|
|
|
|
clippy::indexing_slicing,
|
|
|
|
clippy::integer_arithmetic,
|
2020-02-04 07:55:50 -08:00
|
|
|
clippy::integer_division,
|
|
|
|
clippy::large_enum_variant,
|
2020-01-04 18:58:42 -08:00
|
|
|
clippy::missing_docs_in_private_items,
|
2020-02-04 07:55:50 -08:00
|
|
|
clippy::needless_pass_by_value,
|
2020-02-05 23:57:35 -08:00
|
|
|
clippy::non_ascii_literal,
|
2020-01-04 18:58:42 -08:00
|
|
|
clippy::option_map_unwrap_or_else,
|
|
|
|
clippy::option_unwrap_used,
|
|
|
|
clippy::result_expect_used,
|
2020-01-14 00:52:27 -08:00
|
|
|
clippy::result_unwrap_used,
|
2020-02-04 07:55:50 -08:00
|
|
|
clippy::shadow_reuse,
|
2020-02-04 21:29:53 -08:00
|
|
|
clippy::too_many_lines,
|
2020-01-15 23:37:12 -08:00
|
|
|
clippy::unreachable,
|
2020-02-04 19:59:06 -08:00
|
|
|
clippy::unseparated_literal_suffix,
|
2020-01-14 00:52:27 -08:00
|
|
|
clippy::wildcard_enum_match_arm
|
2020-01-04 18:58:42 -08:00
|
|
|
)]
|
|
|
|
|
2019-05-24 01:25:55 -07:00
|
|
|
use crate::common::*;
|
|
|
|
|
2020-01-14 00:52:27 -08:00
|
|
|
#[cfg(test)]
|
|
|
|
#[macro_use]
|
|
|
|
mod assert_matches;
|
|
|
|
|
2020-01-04 18:58:42 -08:00
|
|
|
#[macro_use]
|
|
|
|
mod errln;
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
mod err;
|
|
|
|
|
2020-02-04 19:59:06 -08:00
|
|
|
#[macro_use]
|
|
|
|
mod outln;
|
|
|
|
|
2019-05-24 01:25:55 -07:00
|
|
|
#[cfg(test)]
|
2020-03-05 21:44:20 -08:00
|
|
|
#[macro_use]
|
2020-01-14 00:52:27 -08:00
|
|
|
mod test_env;
|
|
|
|
|
2020-02-04 10:54:41 -08:00
|
|
|
#[cfg(test)]
|
|
|
|
mod test_env_builder;
|
|
|
|
|
2020-01-14 00:52:27 -08:00
|
|
|
#[cfg(test)]
|
|
|
|
mod capture;
|
|
|
|
|
2020-03-06 22:50:04 -08:00
|
|
|
mod arguments;
|
2020-02-01 12:30:35 -08:00
|
|
|
mod bytes;
|
2019-05-24 01:25:55 -07:00
|
|
|
mod common;
|
|
|
|
mod consts;
|
2020-01-07 18:05:48 -08:00
|
|
|
mod env;
|
2019-05-24 01:25:55 -07:00
|
|
|
mod error;
|
2020-03-15 03:22:33 -07:00
|
|
|
mod file_error;
|
2019-05-24 01:25:55 -07:00
|
|
|
mod file_info;
|
2020-02-05 16:01:44 -08:00
|
|
|
mod file_path;
|
2020-02-14 00:12:49 -08:00
|
|
|
mod file_status;
|
2020-02-04 19:59:06 -08:00
|
|
|
mod files;
|
2019-05-24 01:25:55 -07:00
|
|
|
mod hasher;
|
2020-03-17 03:02:02 -07:00
|
|
|
mod host_port;
|
|
|
|
mod host_port_parse_error;
|
2019-05-24 01:25:55 -07:00
|
|
|
mod info;
|
2020-03-17 03:02:02 -07:00
|
|
|
mod infohash;
|
2020-03-18 02:48:57 -07:00
|
|
|
mod input;
|
2020-04-02 20:04:12 -07:00
|
|
|
mod input_stream;
|
2020-03-18 02:48:57 -07:00
|
|
|
mod input_target;
|
2020-01-04 18:58:42 -08:00
|
|
|
mod into_u64;
|
|
|
|
mod into_usize;
|
2020-02-03 04:39:48 -08:00
|
|
|
mod lint;
|
2020-02-04 19:59:06 -08:00
|
|
|
mod linter;
|
2020-03-17 03:02:02 -07:00
|
|
|
mod magnet_link;
|
2020-02-14 00:12:49 -08:00
|
|
|
mod md5_digest;
|
2019-05-24 01:25:55 -07:00
|
|
|
mod metainfo;
|
2020-03-17 03:02:02 -07:00
|
|
|
mod metainfo_error;
|
2019-05-24 01:25:55 -07:00
|
|
|
mod mode;
|
2020-03-06 22:50:04 -08:00
|
|
|
mod options;
|
2020-03-15 03:22:33 -07:00
|
|
|
mod output_stream;
|
2020-03-11 22:44:14 -07:00
|
|
|
mod output_target;
|
2019-05-24 01:25:55 -07:00
|
|
|
mod path_ext;
|
2020-02-04 19:59:06 -08:00
|
|
|
mod piece_length_picker;
|
2020-02-15 18:08:36 -08:00
|
|
|
mod piece_list;
|
2020-01-30 05:54:08 -08:00
|
|
|
mod platform;
|
|
|
|
mod platform_interface;
|
2020-03-15 03:22:33 -07:00
|
|
|
mod print;
|
2019-05-24 01:25:55 -07:00
|
|
|
mod reckoner;
|
2020-02-15 18:08:36 -08:00
|
|
|
mod sha1_digest;
|
2020-03-27 22:46:41 -07:00
|
|
|
mod shell;
|
2020-03-27 19:00:40 -07:00
|
|
|
mod sort_key;
|
|
|
|
mod sort_order;
|
|
|
|
mod sort_spec;
|
2020-02-14 00:12:49 -08:00
|
|
|
mod status;
|
2020-03-12 22:05:49 -07:00
|
|
|
mod step;
|
2020-01-15 23:37:12 -08:00
|
|
|
mod style;
|
2020-03-06 22:50:04 -08:00
|
|
|
mod subcommand;
|
2020-02-04 07:55:50 -08:00
|
|
|
mod table;
|
|
|
|
mod torrent_summary;
|
2020-01-15 23:37:12 -08:00
|
|
|
mod use_color;
|
2020-02-14 00:12:49 -08:00
|
|
|
mod verifier;
|
2020-02-05 16:01:44 -08:00
|
|
|
mod walker;
|
2019-05-24 01:25:55 -07:00
|
|
|
|
|
|
|
fn main() {
|
2020-01-07 18:05:48 -08:00
|
|
|
if let Err(code) = Env::main().status() {
|
2019-05-24 01:25:55 -07:00
|
|
|
process::exit(code);
|
|
|
|
}
|
|
|
|
}
|