Skip to content

Commit

Permalink
fix minimal version compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique committed Feb 6, 2024
1 parent 6acb212 commit ea79419
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Install toolchain
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly

- name: Generate Cargo.lock with minimal versions
Expand All @@ -63,7 +63,10 @@ jobs:
# multistream-select 0.13 depends on log 0.4, however it can only
# compile with log 0.4.4 and above. When multistream-select 0.14
# is released, this will not be needed.
cargo update -p log --precise 0.4.4
cargo +nightly update -p log --precise 0.4.4
- name: Install 1.73.0 toolchain
uses: dtolnay/rust-toolchain@stable

- name: Set up cargo cache
uses: actions/cache@v3
Expand All @@ -80,7 +83,7 @@ jobs:
cargo-

- name: Run tests
run: cargo test --locked
run: cargo +1.73.0 test --locked


unused-deps:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fnv = "1.0.5"
futures = "0.3"
futures-timer = "3"
libp2p-core = "0.41"
libp2p-identity = "0.2.8"
libp2p-identity = "0.2"
libp2p-swarm = "0.44"
multihash-codetable = "0.1"
quick-protobuf = "0.8"
Expand Down

0 comments on commit ea79419

Please sign in to comment.