Skip to content

Commit

Permalink
Test for minimal dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Oct 17, 2024
1 parent 45f21b0 commit 4c577a3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,33 @@ jobs:
echo ::endgroup::
done
minimal-versions:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- run: git submodule update --init --recursive

- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.81.0 # MSRV

- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly

- name: Remove non-essential dependencies
run: |
# Remove workspace dependencies
sed -i '/\[workspace]/,/#END-\[workspace]/d' Cargo.toml
# Remove dev-dependencies
sed -i '/\[dev-dependencies]/,/#END-\[dev-dependencies]/d' Cargo.toml
- name: Downgrade to minimal dependencies
run: |
cargo +nightly -Z minimal-versions update
- run: cargo +1.81.0 build --all-features
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ members = [
"twox-hash-sum",
"xx_hash-sys",
]
#END-[workspace]

[features]
default = ["random", "xxhash32", "xxhash64", "xxhash3_64", "std"]
Expand Down Expand Up @@ -52,6 +53,7 @@ serde = { version = "1.0.0", optional = true, default-features = false, features

[dev-dependencies]
serde_json = "1.0.117"
#END-[dev-dependencies]

[package.metadata.docs.rs]
all-features = true

0 comments on commit 4c577a3

Please sign in to comment.