mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
63 lines
1.3 KiB
Rust
63 lines
1.3 KiB
Rust
// TODO: add
|
|
// missing_docs,
|
|
// unused_results,
|
|
// trivial_casts??
|
|
#![warn(
|
|
bad_style,
|
|
dead_code,
|
|
improper_ctypes,
|
|
missing_copy_implementations,
|
|
missing_debug_implementations,
|
|
non_shorthand_field_patterns,
|
|
no_mangle_generic_items,
|
|
overflowing_literals,
|
|
path_statements,
|
|
patterns_in_fns_without_body,
|
|
private_in_public,
|
|
trivial_numeric_casts,
|
|
unsafe_code,
|
|
unused_extern_crates,
|
|
unused_import_braces,
|
|
unused_qualifications,
|
|
unconditional_recursion,
|
|
unused,
|
|
unused_allocation,
|
|
unused_comparisons,
|
|
unused_parens,
|
|
while_true,
|
|
clippy::cast_lossless,
|
|
clippy::default_trait_access,
|
|
clippy::doc_markdown,
|
|
clippy::manual_string_new,
|
|
clippy::match_same_arms,
|
|
clippy::semicolon_if_nothing_returned,
|
|
clippy::trivially_copy_pass_by_ref
|
|
)]
|
|
|
|
use anyhow::Result;
|
|
|
|
mod archiver;
|
|
mod backend;
|
|
mod blob;
|
|
mod chunker;
|
|
mod commands;
|
|
mod crypto;
|
|
mod id;
|
|
mod index;
|
|
mod repofile;
|
|
mod repository;
|
|
|
|
mod cdc;
|
|
|
|
fn main() -> Result<()> {
|
|
// this is a workaround until unix_sigpipe (https://github.com/rust-lang/rust/issues/97889) is available.
|
|
// See also https://github.com/rust-lang/rust/issues/46016
|
|
#[cfg(not(windows))]
|
|
#[allow(unsafe_code)]
|
|
unsafe {
|
|
libc::signal(libc::SIGPIPE, libc::SIG_DFL);
|
|
}
|
|
|
|
commands::execute()
|
|
}
|