Skip to content

Commit

Permalink
Merge pull request #195 from MarcoIeni/chore-update-to-axum-0-8
Browse files Browse the repository at this point in the history
chore: update to axum 0.8
  • Loading branch information
Kobzol authored Jan 7, 2025
2 parents a0fc2ec + 99c9e57 commit f50547b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 26 deletions.
39 changes: 16 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ arc-swap = "1.7.1"

# Web
hyper = "1.2.0"
axum = "0.7.4"
axum = "0.8.1"
tower = { version = "0.4", features = ["limit"] }
jsonwebtoken = "9.2.0"
url = "2.3"
Expand Down
3 changes: 1 addition & 2 deletions src/github/webhook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use axum::body::Bytes;
use axum::extract::FromRequest;
use axum::http::request::Parts;
use axum::http::{HeaderMap, HeaderValue, StatusCode};
use axum::{async_trait, RequestExt};
use axum::RequestExt;
use hmac::{Hmac, Mac};
use octocrab::models::events::payload::{
IssueCommentEventAction, IssueCommentEventPayload, PullRequestEventAction,
Expand Down Expand Up @@ -118,7 +118,6 @@ pub struct GitHubWebhook(pub BorsEvent);
const REQUEST_BODY_LIMIT: usize = 10 * 1024 * 1024;

/// Extracts a webhook event from a HTTP request.
#[async_trait]
impl FromRequest<ServerStateRef> for GitHubWebhook {
type Rejection = StatusCode;

Expand Down

0 comments on commit f50547b

Please sign in to comment.