Source: Audit findings (LOW)
Two cleanups under one issue:
-
Lints not enforced. `cargo check` currently reports 8 `dead_code` / unused warnings on main. Add to `src/main.rs`:
```rust
#![warn(dead_code, unused_crate_dependencies)]
```
and a CI step running `cargo clippy --all-targets --all-features -- -D warnings`.
-
Binary bloat. `tokio = { features = ["full"] }` and `hyper = { features = ["full"] }` pull every optional feature even when unused. Trim to actual needs:
- tokio: `["rt-multi-thread", "net", "io-util", "sync", "time", "macros", "signal", "fs"]`
- hyper: `["server", "http1"]` (HTTP/2 not used)
Run `cargo build --release` before and after to confirm a binary-size reduction; this also speeds up clean builds.
Source: Audit findings (LOW)
Two cleanups under one issue:
Lints not enforced. `cargo check` currently reports 8 `dead_code` / unused warnings on main. Add to `src/main.rs`:
```rust
#![warn(dead_code, unused_crate_dependencies)]
```
and a CI step running `cargo clippy --all-targets --all-features -- -D warnings`.
Binary bloat. `tokio = { features = ["full"] }` and `hyper = { features = ["full"] }` pull every optional feature even when unused. Trim to actual needs:
Run `cargo build --release` before and after to confirm a binary-size reduction; this also speeds up clean builds.