-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathCargo.toml
145 lines (126 loc) · 3.86 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[package]
name = "rustic_core"
version = "0.7.3"
authors = ["the rustic-rs team"]
categories = ["data-structures", "encoding", "filesystem"]
documentation = "https://docs.rs/rustic_core"
edition = "2021"
homepage = "https://rustic.cli.rs/"
include = ["src/**/*", "LICENSE-*", "README.md"]
keywords = ["backup", "restic", "deduplication", "encryption", "library"]
license = "Apache-2.0 OR MIT"
publish = true
readme = "README.md"
repository = "https://github.com/rustic-rs/rustic_core"
resolver = "2"
rust-version = { workspace = true }
description = """
rustic_core - library for fast, encrypted, deduplicated backups that powers rustic-rs
"""
[lib]
path = "src/lib.rs"
name = "rustic_core"
test = true
doctest = true
bench = true
doc = true
harness = true
edition = "2021"
[features]
default = []
cli = ["merge", "clap"]
merge = ["dep:conflate"]
clap = ["dep:clap"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--document-private-items", "--generate-link-to-definition"]
[dependencies]
# errors
displaydoc = { workspace = true }
thiserror = { workspace = true }
# macros
derive_more = { version = "1.0.0", features = ["add", "constructor", "display", "from", "deref", "from_str"] }
derive_setters = "0.1.6"
# logging
log = { workspace = true }
# parallelize
crossbeam-channel = "0.5.13"
pariter = "0.5.1"
rayon = "1.10.0"
# crypto
aes256ctr_poly1305aes = { version = "0.2.1", features = ["std"] } # we need std here for error impls
rand = "0.8.5"
scrypt = { version = "0.11.0", default-features = false, features = ["std"] } # we need std here for error impls
# serialization / packing
binrw = "0.14.1"
hex = { version = "0.4.3", features = ["serde"] }
integer-sqrt = "0.1.5"
rustic_cdc = "0.3.1"
serde = { version = "1.0.215" }
serde-aux = "4.5.0"
serde_derive = "1.0.215"
serde_json = "1.0.133"
serde_with = { version = "3.11.0", features = ["base64"] }
# local source/destination
cached = { version = "0.54.0", default-features = false, features = ["proc_macro"] }
dunce = "1.0.5"
filetime = "0.2.25"
ignore = "0.4.23"
nix = { version = "0.29.0", default-features = false, features = ["user", "fs"] }
path-dedot = "3.1.1"
walkdir = "2.5.0"
# cache
cachedir = "0.3.1"
dirs = "5.0.1"
# cli support
clap = { version = "4.5.21", optional = true, features = ["derive", "env", "wrap_help"] }
conflate = { version = "0.3.3", optional = true }
# vfs support
runtime-format = "0.1.3"
# other dependencies
bytes = { workspace = true }
bytesize = "1.3.0"
chrono = { version = "0.4.38", default-features = false, features = ["clock", "serde"] }
ecow = "0.2.3"
enum-map = { workspace = true }
enum-map-derive = "0.17.0"
enumset = { version = "1.1.5", features = ["serde"] }
gethostname = "0.5.0"
globset = "0.4.15"
humantime = "2.1.0"
itertools = "0.13.0"
quick_cache = "0.6.9"
shell-words = "1.1.0"
strum = { version = "0.26.3", features = ["derive"] }
typed-path = "0.10.0"
zstd = "0.13.2"
[target.'cfg(not(windows))'.dependencies]
sha2 = { version = "0.10.8", features = ["asm"] }
[target.'cfg(windows)'.dependencies]
# unfortunately, the asm extensions do not build on Windows, see https://github.com/RustCrypto/asm-hashes/issues/17
# and https://github.com/RustCrypto/asm-hashes/pull/issues/78
sha2 = "0.10.8"
[target.'cfg(not(any(windows, target_os="openbsd")))'.dependencies]
# for local source/destination
xattr = "1"
[dev-dependencies]
anyhow = { workspace = true }
expect-test = "1.5.0"
flate2 = "1.0.35"
insta = { version = "1.41.1", features = ["redactions", "ron"] }
mockall = "0.13"
pretty_assertions = "1.4.1"
quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
rstest = { workspace = true }
rustdoc-json = "0.9.3"
# We need to have rustic_backend here, because the doc-tests in lib.rs of rustic_core
rustic_backend = { workspace = true }
rustic_testing = { workspace = true }
rustup-toolchain = "0.1.8"
simplelog = "0.12.2"
tar = "0.4.43"
tempfile = { workspace = true }
toml = "0.8.19"
[lints]
workspace = true