Skip to content

Commit

Permalink
pin cargo-expand version
Browse files Browse the repository at this point in the history
  • Loading branch information
wmmc88 committed Apr 2, 2024
1 parent e848112 commit 71bc804
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Install Cargo Expand
uses: taiki-e/install-action@v2
with:
tool: cargo-expand
tool: cargo-expand@1.0.80

- name: Run Cargo Test
run: cargo +${{ matrix.rust_toolchain }} test --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple }}
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ That's it! Thank you for your contribution!
The following tools should be installed as a part of the `windows-drivers-rs` developer workflow:
* `cargo-expand`: `cargo install --locked cargo-expand`
* `cargo-expand`: `cargo install --locked cargo-expand --version 1.0.80`
* `cargo-audit`: `cargo install --locked cargo-audit`
* `cargo-udeps`: `cargo install --locked cargo-udeps`
* `taplo-cli`: `cargo install --locked taplo-cli`
Expand Down
4 changes: 4 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ success = rm -r ${CARGO_MAKE_CRATE_CUSTOM_TRIPLE_TARGET_DIRECTORY}/tests
assert ${success} "Failed to delete tests directory"
'''

[tasks.test]
install_crate = { crate_name = "cargo-expand", version = "1.0.80" }

[tasks.audit]
args = ["audit", "--deny", "warnings"]

Expand All @@ -58,6 +61,7 @@ alias = "pre-test"

[tasks.nightly-test]
extend = "test"
install_crate = { crate_name = "cargo-expand", version = "1.0.80" }
env = { CARGO_MAKE_CARGO_BUILD_TEST_FLAGS = "--features nightly" }
toolchain = "nightly"

Expand Down

0 comments on commit 71bc804

Please sign in to comment.