# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.76.0" name = "rustic_backend" version = "0.5.2" authors = ["the rustic-rs team"] build = false include = [ "src/**/*", "LICENSE-*", "README.md", ] publish = true autobins = false autoexamples = false autotests = false autobenches = false description = """ rustic_backend - library for supporting various backends in rustic-rs """ homepage = "https://rustic.cli.rs/" documentation = "https://docs.rs/rustic_backend" readme = "README.md" keywords = [ "backup", "restic", "deduplication", "encryption", "library", ] categories = [ "data-structures", "filesystem", ] license = "Apache-2.0 OR MIT" repository = "https://github.com/rustic-rs/rustic_core/tree/main/crates/backend" resolver = "2" [lib] name = "rustic_backend" path = "src/lib.rs" test = true doctest = true bench = true doc = true harness = true edition = "2021" [dependencies.aho-corasick] version = "1.1.3" [dependencies.backon] version = "1.3.0" optional = true [dependencies.bytes] version = "1.8.0" [dependencies.bytesize] version = "1.3.0" [dependencies.clap] version = "4.5.21" features = [ "derive", "env", "wrap_help", ] optional = true [dependencies.conflate] version = "0.3.3" optional = true [dependencies.derive_setters] version = "0.1.6" [dependencies.displaydoc] version = "0.2.5" [dependencies.hex] version = "0.4.3" features = ["serde"] [dependencies.humantime] version = "2.1.0" [dependencies.itertools] version = "0.13.0" [dependencies.log] version = "0.4.22" [dependencies.rand] version = "0.8.5" optional = true [dependencies.rayon] version = "1.10.0" optional = true [dependencies.reqwest] version = "0.12.9" features = [ "json", "rustls-tls-native-roots", "stream", "blocking", ] optional = true default-features = false [dependencies.rustic_core] version = "0" [dependencies.semver] version = "1.0.23" optional = true [dependencies.serde] version = "1.0.215" [dependencies.strum] version = "0.26" [dependencies.strum_macros] version = "0.26" [dependencies.thiserror] version = "2.0.3" [dependencies.tokio] version = "1.41.1" optional = true default-features = false [dependencies.typed-path] version = "0.9.3" optional = true [dependencies.url] version = "2.5.4" [dependencies.walkdir] version = "2.5.0" [dev-dependencies.anyhow] version = "1.0.93" [dev-dependencies.rstest] version = "0.23.0" [dev-dependencies.toml] version = "0.8.19" [features] clap = ["dep:clap"] cli = [ "merge", "clap", ] default = [ "opendal", "rest", "rclone", ] merge = ["dep:conflate"] opendal = [ "dep:opendal", "dep:rayon", "dep:tokio", "tokio/rt-multi-thread", "dep:typed-path", ] rclone = [ "rest", "dep:rand", "dep:semver", ] rest = [ "dep:reqwest", "dep:backon", ] [target."cfg(not(windows))".dependencies.opendal] version = "0.50.2" features = [ "services-b2", "services-sftp", "services-swift", "services-azblob", "services-azdls", "services-cos", "services-fs", "services-dropbox", "services-gdrive", "services-gcs", "services-ghac", "services-http", "services-ipmfs", "services-memory", "services-obs", "services-onedrive", "services-oss", "services-s3", "services-webdav", "services-webhdfs", "services-azfile", "layers-blocking", "layers-throttle", "services-yandex-disk", ] optional = true [target."cfg(windows)".dependencies.opendal] version = "0.50.2" features = [ "services-b2", "services-swift", "services-azblob", "services-azdls", "services-cos", "services-fs", "services-dropbox", "services-gdrive", "services-gcs", "services-ghac", "services-http", "services-ipmfs", "services-memory", "services-obs", "services-onedrive", "services-oss", "services-s3", "services-webdav", "services-webhdfs", "services-azfile", "layers-blocking", "layers-throttle", "services-yandex-disk", ] optional = true [lints.clippy] cast_lossless = "warn" default_trait_access = "warn" doc_markdown = "warn" enum_glob_use = "warn" manual_string_new = "warn" match_same_arms = "warn" missing_const_for_fn = "allow" module_name_repetitions = "allow" needless_raw_string_hashes = "allow" redundant_pub_crate = "allow" semicolon_if_nothing_returned = "warn" trivially_copy_pass_by_ref = "warn" [lints.clippy.complexity] level = "warn" priority = -1 [lints.clippy.correctness] level = "warn" priority = -1 [lints.clippy.nursery] level = "warn" priority = -1 [lints.clippy.pedantic] level = "warn" priority = -1 [lints.clippy.perf] level = "warn" priority = -1 [lints.clippy.suspicious] level = "warn" priority = -1 [lints.rust] bad_style = "warn" dead_code = "allow" improper_ctypes = "warn" missing_copy_implementations = "warn" missing_debug_implementations = "warn" missing_docs = "warn" no_mangle_generic_items = "warn" non_shorthand_field_patterns = "warn" overflowing_literals = "warn" path_statements = "warn" patterns_in_fns_without_body = "warn" trivial_casts = "warn" trivial_numeric_casts = "warn" unconditional_recursion = "warn" unreachable_pub = "allow" unsafe_code = "forbid" unused_allocation = "warn" unused_comparisons = "warn" unused_extern_crates = "warn" unused_import_braces = "warn" unused_lifetimes = "warn" unused_parens = "warn" unused_qualifications = "warn" unused_results = "warn" while_true = "warn" [lints.rust.rust_2018_idioms] level = "warn" priority = -1 [lints.rust.unused] level = "warn" priority = -1 [lints.rustdoc] private_intra_doc_links = "allow"