diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 769188c6f..44dd56daa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,11 @@ jobs: with: toolchain: ${{ matrix.rust }} + - name: Downgrade dependencies to 1.81 compatible versions + run: | + cargo update -p rand@0.10.0 --precise 0.9.0 + if: ${{ matrix.rust == '1.81.0' }} + - name: Unit Tests run: cargo test --all-features diff --git a/Cargo.toml b/Cargo.toml index 863dcbd8a..cdb4a933b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,7 @@ check-cfg = [ ] [dependencies] -rand = { version = "0.9.0", optional = true, default-features = false, features = ["thread_rng"] } +rand = { version = ">=0.9.0, <=0.11.0", optional = true, default-features = false, features = ["thread_rng"] } serde = { version = "1.0.0", optional = true, default-features = false, features = ["derive"] } [dev-dependencies]