Skip to content

Commit 810d18a

Browse files
MrmaxmeierYour NamePr0methean
authored
deps: Relax dependency versions (#243)
* CI: Add -Zminimal-versions job * Bump anyhow dev-dep to fix build with -Zminimal-versions * Relax dependency bounds These relaxed bounds don't impact existing builds as they're all SemVer compatible. Specifying lower bounds allows projects with dependencies that pin these to lower versions do build without version resolution conflicts. * Cargo.toml: elide .0 patch versions --------- Co-authored-by: Your Name <you@example.com> Co-authored-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
1 parent 2c03abc commit 810d18a

File tree

2 files changed

+39
-21
lines changed

2 files changed

+39
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,24 @@ jobs:
7070
command: fmt
7171
args: --all -- --check
7272

73+
check_minimal_versions:
74+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
75+
runs-on: ubuntu-latest
76+
77+
steps:
78+
- uses: actions/checkout@v4
79+
- uses: actions-rs/toolchain@v1
80+
with:
81+
profile: minimal
82+
toolchain: nightly
83+
override: true
84+
- name: resolve minimal versions
85+
run: cargo -Z minimal-versions update
86+
- name: check
87+
run: cargo check --all-features
88+
- name: test
89+
run: cargo test --all-features
90+
7391
style_and_docs:
7492
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
7593
strategy:

Cargo.toml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,31 @@ all-features = true
2323
rustdoc-args = ["--cfg", "docsrs"]
2424

2525
[workspace.dependencies]
26-
time = { version = "0.3.36", default-features = false }
26+
time = { version = "0.3.1", default-features = false }
2727

2828
[dependencies]
29-
aes = { version = "0.8.4", optional = true }
30-
bzip2 = { version = "0.4.4", optional = true }
31-
chrono = { version = "0.4.38", optional = true }
32-
constant_time_eq = { version = "0.3.1", optional = true }
33-
crc32fast = "1.4.2"
34-
displaydoc = { version = "0.2.5", default-features = false }
35-
flate2 = { version = "1.0.33", default-features = false, optional = true }
29+
aes = { version = "0.8", optional = true }
30+
bzip2 = { version = "0.4.3", optional = true }
31+
chrono = { version = "0.4", optional = true }
32+
constant_time_eq = { version = "0.3", optional = true }
33+
crc32fast = "1.4"
34+
displaydoc = { version = "0.2", default-features = false }
35+
flate2 = { version = "1.0", default-features = false, optional = true }
3636
indexmap = "2"
37-
hmac = { version = "0.12.1", optional = true, features = ["reset"] }
38-
memchr = "2.7.4"
39-
pbkdf2 = { version = "0.12.2", optional = true }
40-
rand = { version = "0.8.5", optional = true }
41-
sha1 = { version = "0.10.6", optional = true }
42-
thiserror = "2.0.3"
37+
hmac = { version = "0.12", optional = true, features = ["reset"] }
38+
memchr = "2.7"
39+
pbkdf2 = { version = "0.12", optional = true }
40+
rand = { version = "0.8", optional = true }
41+
sha1 = { version = "0.10", optional = true }
42+
thiserror = "2"
4343
time = { workspace = true, optional = true, features = [
4444
"std",
4545
] }
46-
zeroize = { version = "1.8.1", optional = true, features = ["zeroize_derive"] }
47-
zstd = { version = "0.13.2", optional = true, default-features = false }
48-
zopfli = { version = "0.8.1", optional = true }
46+
zeroize = { version = "1.8", optional = true, features = ["zeroize_derive"] }
47+
zstd = { version = "0.13", optional = true, default-features = false }
48+
zopfli = { version = "0.8", optional = true }
4949
deflate64 = { version = "0.1.9", optional = true }
50-
lzma-rs = { version = "0.3.0", default-features = false, optional = true }
50+
lzma-rs = { version = "0.3", default-features = false, optional = true }
5151

5252
[target.'cfg(any(all(target_arch = "arm", target_pointer_width = "32"), target_arch = "mips", target_arch = "powerpc"))'.dependencies]
5353
crossbeam-utils = "0.8.20"
@@ -58,11 +58,11 @@ arbitrary = { version = "1.3.2", features = ["derive"] }
5858
[dev-dependencies]
5959
bencher = "0.1.5"
6060
getrandom = { version = "0.2.15", features = ["js", "std"] }
61-
walkdir = "2.5.0"
61+
walkdir = "2.5"
6262
time = { workspace = true, features = ["formatting", "macros"] }
63-
anyhow = "1"
63+
anyhow = "1.0.60"
6464
clap = { version = "=4.4.18", features = ["derive"] }
65-
tempfile = "3"
65+
tempfile = "3.8"
6666

6767
[features]
6868
aes-crypto = ["aes", "constant_time_eq", "hmac", "pbkdf2", "sha1", "rand", "zeroize"]

0 commit comments

Comments
 (0)