Skip to content

chore(deps): used cargo features prune to reduce the deps count#10

Merged
ValDesign22 merged 19 commits intofeat/mailsfrom
chore/reduce-deps
Mar 20, 2026
Merged

chore(deps): used cargo features prune to reduce the deps count#10
ValDesign22 merged 19 commits intofeat/mailsfrom
chore/reduce-deps

Conversation

@ValDesign22
Copy link
Copy Markdown
Member

@ValDesign22 ValDesign22 commented Mar 15, 2026

This pull request introduces several improvements and refactors to the build pipeline, dependency management, and API code. The most significant changes are grouped below by theme.

Build Pipeline and Docker Workflow Improvements:

  • Updated the GitHub Actions workflow to use a fixed Docker registry repository name, added explicit permissions for contents and packages, and introduced Docker Buildx setup for improved build caching and multi-platform support. Also, switched the Dockerfile path and enabled registry-based build cache. [1] [2] [3]
  • Enhanced Docker image tagging logic to normalize branch names and tag images per branch, with additional tagging for master as latest.
  • Added a notify job to the workflow that posts or updates a preview comment on open PRs, informing contributors of available Docker preview images for each variant.
  • Refactored the Dockerfile to introduce a dedicated final-build stage, enabled --all-features for dependency cooking, and updated the runtime stage to copy from the new build stage. [1] [2]

Dependency Management:

  • Cleaned up and updated dependencies in Cargo.toml: removed unnecessary features, bumped mongodb to 3.5.2, simplified feature sets for several crates, and streamlined tokio and tracing configurations. [1] [2] [3]

API and Repository Enhancements:

  • Introduced CustomEventUpdatePayload for event updates, replacing the previous CustomEventBody in update endpoints, and adjusted the update logic to only allow updating the graph_name. [1] [2] [3] [4] [5]
  • On event deletion, now also removes the event from bot stats, logging any errors encountered during this process. Added remove_event_from_stats method to BotStatsRepository. [1] [2]

Miscellaneous Improvements:

  • Minor update to bot token regeneration email template for clearer messaging.

@ValDesign22 ValDesign22 added help wanted Extra attention is needed deps Related to crates or dependencies modifications labels Mar 15, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 18, 2026

🐳 Docker preview images are ready!

Preview images are available for this PR:

Variant Tag
Default ghcr.io/discordanalytics/api:chore-reduce-deps
Full ghcr.io/discordanalytics/api:chore-reduce-deps-full
Mails ghcr.io/discordanalytics/api:chore-reduce-deps-mails
Reports ghcr.io/discordanalytics/api:chore-reduce-deps-reports

You can mention a maintainer to update it.

@ValDesign22 ValDesign22 merged commit 3249015 into feat/mails Mar 20, 2026
5 checks passed
@ValDesign22 ValDesign22 deleted the chore/reduce-deps branch March 20, 2026 08:13
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deps Related to crates or dependencies modifications help wanted Extra attention is needed released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants