From 1079ed4f6ecafbf4384735e4158151edc6f361cc Mon Sep 17 00:00:00 2001 From: codewiththiha Date: Tue, 4 Aug 2026 12:02:41 +0630 Subject: [PATCH] chore: drop unused futures dep and add a lint/test CI gate - Remove the `futures` workspace dependency (declared, referenced by no crate) - Add .github/workflows/ci.yml: cargo fmt --check, clippy -D warnings, and cargo test on every push/PR to main, enforcing the README quality bar --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ Cargo.toml | 1 - 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d5ba13c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +# Lint + test gate on every push/PR to main. +# +# The README documents `cargo fmt --check`, `cargo clippy --all-targets +# -- -D warnings`, and `cargo test` as the quality bar; this job enforces it +# so nothing lands that doesn't pass its own checks. Releases are handled +# separately by `release.yml` (tag-triggered). + +name: ci + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + check: + name: fmt + clippy + test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - uses: Swatinem/rust-cache@v2 + + - name: Format + run: cargo fmt --check + + - name: Clippy + run: cargo clippy --workspace --all-targets -- -D warnings + + - name: Test + run: cargo test --workspace diff --git a/Cargo.toml b/Cargo.toml index 406b5f1..997c5ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,6 @@ tokio = { version = "1", features = [ "net", ] } tokio-util = { version = "0.7", features = ["rt"] } -futures = "0.3" async-trait = "0.1" # Error handling