rustic_backend 0.6.0

rustic_backend - library for supporting various backends in rustic-rs
Documentation
# 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 = "2024"
rust-version = "1.88.0"
name = "rustic_backend"
version = "0.6.0"
authors = ["the rustic-rs team"]
build = false
include = [
    "src/**/*",
    "LICENSE-*",
    "README.md",
]
publish = true
autolib = false
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 = "3"

[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",
]

[lib]
name = "rustic_backend"
path = "src/lib.rs"
test = true
doctest = true
bench = true
doc = true
harness = true

[dependencies.aho-corasick]
version = "1.1.4"

[dependencies.backon]
version = "1.6.0"
optional = true

[dependencies.bytes]
version = "1.11.1"

[dependencies.bytesize]
version = "2.3.1"

[dependencies.clap]
version = "4.5.57"
features = [
    "derive",
    "env",
    "wrap_help",
]
optional = true

[dependencies.conflate]
version = "0.3.3"
optional = true

[dependencies.derive_setters]
version = "0.1.9"

[dependencies.displaydoc]
version = "0.2.5"

[dependencies.hex]
version = "0.4.3"
features = ["serde"]

[dependencies.itertools]
version = "0.14.0"

[dependencies.jiff]
version = "0.2.19"

[dependencies.log]
version = "0.4.29"

[dependencies.rand]
version = "0.9.2"
optional = true

[dependencies.rayon]
version = "1.11.0"
optional = true

[dependencies.reqwest]
version = "0.12.28"
features = [
    "json",
    "rustls-tls-native-roots",
    "stream",
    "blocking",
]
optional = true
default-features = false

[dependencies.rustic_core]
version = "0"

[dependencies.semver]
version = "1.0.27"
optional = true

[dependencies.serde]
version = "1.0.228"

[dependencies.strum]
version = "0.27"

[dependencies.strum_macros]
version = "0.27"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.49.0"
optional = true
default-features = false

[dependencies.typed-path]
version = "0.12.2"
optional = true

[dependencies.url]
version = "2.5.8"

[dependencies.walkdir]
version = "2.5.0"

[dev-dependencies.anyhow]
version = "1.0.101"

[dev-dependencies.rstest]
version = "0.26.1"

[dev-dependencies.toml]
version = "0.9.11"

[target."cfg(not(windows))".dependencies.opendal]
version = "0.55.0"
features = [
    "blocking",
    "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-throttle",
    "services-yandex-disk",
]
optional = true

[target."cfg(windows)".dependencies.opendal]
version = "0.55.0"
features = [
    "blocking",
    "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-throttle",
    "services-yandex-disk",
]
optional = true

[lints.clippy]
cast_lossless = "warn"
default_trait_access = "warn"
doc_markdown = "warn"
enum_glob_use = "warn"
literal_string_with_formatting_args = "allow"
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"