Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use Axum instead of Actix #234

Merged

Conversation

GuillaumeDeconinck
Copy link
Contributor

@GuillaumeDeconinck GuillaumeDeconinck commented Feb 27, 2025

Changed

  • Convert HTTP layer from Actix-web to Axum
    • Axum is the most popular HTTP framework by a big margin, and is closely integrated with Tokio (most popular async runtime)
    • More future-proof
    • Telemetry setup (logs and APM) has been tested
    • To be honest, Actix was working fine, but I've adapted this during my free time as practice 😄
  • Changed local dev tool cargo-watch to watchexec, as cargo-watch is archived

@GuillaumeDecMeetsMore GuillaumeDecMeetsMore changed the title refactor: start using axum refactor: use Axum instead of Actix Apr 1, 2025
@GuillaumeDecMeetsMore GuillaumeDecMeetsMore marked this pull request as ready for review April 2, 2025 00:45
@GuillaumeDecMeetsMore GuillaumeDecMeetsMore self-assigned this Apr 2, 2025
Copy link

@mm-zacharydavison mm-zacharydavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of hard for me to review meaningfully, but approved nonetheless.
I had one comment.


// Refetch the account, as the protect_admin_route uses a cached method
// Meaning that the account could have been deleted in the meantime (or updated)
let account = ctx

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intended to remove?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, not intended 😓

@GuillaumeDecMeetsMore GuillaumeDecMeetsMore merged commit 9220183 into meetsmore:master Apr 4, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants