Skip to content

Commit 92989bb

Browse files
committed
Switch to Tokio
2 parents 1a852c5 + ef3bfea commit 92989bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2980
-2140
lines changed

Cargo.lock

Lines changed: 36 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ s3 = [
2020
"dep:base64",
2121
"dep:crc32c",
2222
"dep:futures",
23-
"dep:tokio",
2423
]
2524
s3-integration-test = ["s3"]
2625
sftp = ["dep:ssh2", "dep:libssh2-sys"]
@@ -31,6 +30,7 @@ name = "conserve"
3130

3231
[dependencies]
3332
assert_matches = "1.5.0"
33+
async-trait = "0.1.85"
3434
aws-config = { version = "1.1", optional = true }
3535
aws-sdk-s3 = { version = "1.56", optional = true }
3636
aws-types = { version = "1.1", optional = true }
@@ -51,8 +51,6 @@ lazy_static = "1.4.0"
5151
libssh2-sys = { version = "0.3.0", optional = true }
5252
lru = "0.12"
5353
mutants = "0.0.3"
54-
rayon = "1.3.0"
55-
readahead-iterator = "0.1.1"
5654
regex = "1.3.9"
5755
semver = "1"
5856
serde = { version = "1", features = ["derive"] }
@@ -70,7 +68,7 @@ time = { version = "0.3.35", features = [
7068
"serde",
7169
"serde-human-readable",
7270
] }
73-
tokio = { version = "1", optional = true, features = ["full"] }
71+
tokio = { version = "1.43", features = ["full", "test-util", "tracing"] }
7472
tracing = "0.1"
7573
tracing-appender = "0.2"
7674
unix_mode = "0.1"

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Changed: Conserve now internally uses Tokio rather than raw threads and Rayon for parallelism. This is a step towards better overlapping both local and network archive operations.
6+
57
- New: `conserve mount ARCHIVE` gives readonly access to all the history in the archive as a virtual filesystem, currently only on Windows.
68

79
- New: Support for reading and writing archives over SFTP. Credentials currently must come from an sftp-agent.

0 commit comments

Comments
 (0)