Repository navigation
fix: build without the webhooks feature; check feature combinations in CI - #24
Merged
Merged
Conversation
…s in CI `HammerworkConfig` used `events::EventConfig`, but the `events` module was gated on `webhooks`, so the crate didn't compile with only a database feature. The event system has no webhook dependencies, so the module and its re-exports are now always compiled. Add a CI job that runs clippy on the library with no features, each backend alone, both backends, and postgres+encryption / mysql+tracing. The --all-features jobs couldn't catch this. postgres+streaming is left out until #23 removes the placeholder processors' simulated delivery. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodingAnarchy
force-pushed
the
fix/feature-matrix
branch
from
October 8, 2026 08:25
48decf0 to
d02b4bd
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 of 32 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #7 (feature matrix item).
Problem
cargo build -p hammerwork --no-default-features --features postgres(ormysql, or any set withoutwebhooks) failed withunresolved import crate::events.HammerworkConfigembedsevents::EventConfig, butpub mod eventswas gated onwebhooks. CI only built with--all-features, so nothing caught it.Changes
eventsis always compiled, along with itsEventManager,JobLifecycleEvent, … re-exports. It depends only on chrono, serde, tokio and uuid; nothing webhook-specific.src/integration_tests.rs(cross-component events + webhooks + streaming tests) is gated onwebhooks.HammerworkConfig::production()gets#[allow(clippy::needless_update)]with a comment. Which fields its trailing..Default::default()fills depends on the enabled features.tests/dequeue_concurrency_tests.rsis gated on a database feature.feature combinations:cargo clippy -p hammerwork --lib --tests --no-default-features --features <set> -D warningsfor"",postgres,mysql,postgres,mysql,postgres,encryptionandmysql,tracing.postgres,streamingis left out for now: building streaming without a concrete backend exposes the placeholder processors, and the Kafka one fakes successful delivery. That's filed as #23, which adds the entry back.Verification
All six feature sets pass clippy with
-D warningslocally.cargo clippy --workspace --all-targets --all-features -D warningsis still clean.🤖 Generated with Claude Code