Skip to content

Commit

Permalink
chore: run unused dependency detection in CI, remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Jan 14, 2022
1 parent 48d8764 commit 79f9fcc
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 8 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
- uses: EmbarkStudios/cargo-deny-action@v1

cargo-udeps:
name: cargo-udeps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install minimal nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- uses: Swatinem/rust-cache@v1
- name: Install cargo-udeps
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-udeps
- name: run cargo-udeps
run: cargo +nightly udeps
3 changes: 3 additions & 0 deletions fastpay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ path = "src/server.rs"
[[bin]]
name = "bench"
path = "src/bench.rs"

[package.metadata.cargo-udeps.ignore]
normal = ["net2"]
1 change: 0 additions & 1 deletion fastpay_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ edition = "2021"
rocksdb = "0.17.0"
anyhow = "1.0.52"
bcs = "0.1.3"
failure = "0.1.8"
futures = "0.3.5"
rand = "0.7.3"
serde = { version = "1.0.133", features = ["derive"] }
Expand Down
4 changes: 4 additions & 0 deletions fastx_programmability/framework/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ move-stdlib = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9
move-unit-test = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }
move-vm-runtime = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }
move-vm-types = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }


[package.metadata.cargo-udeps.ignore]
normal = ["move-cli", "move-unit-test"]
2 changes: 1 addition & 1 deletion fastx_programmability/verifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ move-binary-format = { git = "https://github.com/diem/move", rev="98ed299a7e3a92
move-bytecode-verifier = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }
move-core-types = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }

fastx-types = { path = "../../fastx_types" }
fastx-types = { path = "../../fastx_types" }
5 changes: 0 additions & 5 deletions fastx_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@ anyhow = "1.0.52"
base64 = "0.13.0"
bcs = "0.1.3"
bincode = "1.3.3"
failure = "0.1.8"
futures = "0.3.5"
rand = "0.7.3"
serde = { version = "1.0.133", features = ["derive"] }
tokio = { version = "1.15.0", features = ["full"] }
ed25519 = "1.3.0"
ed25519-dalek = { version = "1.0.1", features = ["batch", "serde"] }
serde-name = "0.2.0"
sha3 = "0.9"
structopt = "0.3.25"
thiserror = "1.0.30"
rocksdb = "0.17.0"

move-binary-format = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }
move-core-types = { git = "https://github.com/diem/move", rev="98ed299a7e3a9223019c9bdf4dd92fea9faef860" }

0 comments on commit 79f9fcc

Please sign in to comment.