Skip to content

Commit 682356f

Browse files
authored
ci: add cargo shear for dunking on unused deps (#107)
2 parents 2c68093 + d37142a commit 682356f

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,21 @@ jobs:
100100
- name: Check documentation
101101
run: RUSTDOCFLAGS="-D warnings" cargo +nightly doc --all --no-deps --all-features --document-private-items
102102
env:
103-
RUSTDOCFLAGS: "-D warnings"
103+
RUSTDOCFLAGS: "-D warnings"
104+
105+
# Find unused dependencies, this will fail if any are found.
106+
cargo-shear:
107+
runs-on: ubuntu-latest
108+
timeout-minutes: 20
109+
steps:
110+
- name: Checkout sources
111+
uses: actions/checkout@v5
112+
113+
- name: Install cargo-binstall
114+
uses: cargo-bins/cargo-binstall@main
115+
116+
- name: Install cargo-shear
117+
run: cargo binstall --no-confirm cargo-shear
118+
119+
- name: Run cargo shear
120+
run: cargo shear

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ arc-swap = "1.7.1"
6868
# networking
6969
quinn = "0.11.9"
7070
rcgen = "0.14"
71-
# (rustls needs to be the same version as the one used by quinn)
72-
rustls = { version = "0.21", features = ["quic", "dangerous_configuration"] }
7371
openssl = { version = "0.10" }
7472

7573
# benchmarking & profiling

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ The 📖 [MSG-RS Book][book] contains detailed information on how to use the lib
2828
- [x] Request/Reply
2929
- [x] Publish/Subscribe
3030
- Pluggable transport layers
31-
- [x] TCP
32-
- [x] QUIC
31+
- [x] TCP (with TLS support)
32+
- [x] QUIC (with TLS support)
3333
- [x] IPC
3434
- Useful stats: latency, throughput, packet drops
3535
- Durable IO abstraction (built-in retries and reconnections)

msg/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ tokio-stream.workspace = true
2121
[dev-dependencies]
2222
bytes.workspace = true
2323
tracing-subscriber = "0.3"
24-
divan = "0.1"
2524
futures.workspace = true
2625
tracing.workspace = true
2726
rand.workspace = true

0 commit comments

Comments
 (0)