Skip to content

Commit

Permalink
Add cargo machete to CI (#155)
Browse files Browse the repository at this point in the history
* Add cargo machete to CI

* Correct machete findings
  • Loading branch information
MOZGIII authored May 18, 2024
1 parent 72d1678 commit 6d10611
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ jobs:
sudo tar -xzvf - -C /usr/local/bin
run: cargo-sort -cwg

- name: cargo-machete
download: >
curl -sSL "https://github.com/bnjbvr/cargo-machete/releases/download/v0.6.0/cargo-machete-v0.6.0-x86_64-unknown-linux-musl.tar.gz" |
sudo tar -xzvf - --strip-components=1 -C /usr/local/bin
run: cargo-machete

- name: typos
download: >
curl -sSL "https://github.com/crate-ci/typos/releases/download/v1.21.0/typos-v1.21.0-x86_64-unknown-linux-musl.tar.gz" |
Expand Down
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/xwt-cert-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Useful for generating certificate. Also usable without xwt.
repository = "https://github.com/MOZGIII/xwt"

[package.metadata.cargo-machete]
ignored = ["sha2"]
ignored = ["sha2", "getrandom"]

[dependencies]
der = { version = "0.7", default-features = false, features = ["alloc"] }
Expand Down
1 change: 0 additions & 1 deletion examples/microapp/server-shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ publish = false
xwt-core = { version = "0.4", path = "../../../crates/xwt-core" }

futures-util = "0.3"
rand = "0.8"
tokio = { version = "1", default-features = false, features = ["time"] }

0 comments on commit 6d10611

Please sign in to comment.