axum icon indicating copy to clipboard operation
axum copied to clipboard

Ergonomic and modular web framework built with Tokio, Tower, and Hyper

Results 113 axum issues
Sort by recently updated
recently updated
newest added

This fixes #1142 by introducing a type safe `State` extractor. Attempting to extract states that haven't seen set results in compile errors, rather than runtime errors. Example usage: ```rust #[derive(Clone)]...

A-axum
A-axum-macros
A-axum-extra
A-axum-core

### Motivation See https://github.com/tokio-rs/axum/issues/1116#issuecomment-1215034454 ### Solution - [x] Implement `WithRequest` - [x] Add `with_request` feature - [x] Include tests - [x] Add documentation - [x] Include an example

This adds `Either{2..8}` types which combines extractors and responses into a single type. They serve a similar purpose as https://github.com/tokio-rs/axum/pull/1170 but are a bit more low level.

A-axum-extra

Currently, rejections from extractors in axum and axum-extra turn into responses with plain-text bodies. In some cases this is not a problem but many people are using axum to implement...

C-musings
E-hard
S-blocked

For 0.6 I wanna re-organize to changelog by grouping the changes into areas (like routing, extractors, responses, etc) and provide examples for how to migrate from 0.5 to 0.6. This...

A-axum

I've had an idea for a while that would make generic handlers pretty much fully checkable, that is: ```rust #[debug_handler(with(T = String, T = u64; U = i8, U =...

C-enhancement
E-help-wanted
E-medium
A-axum-macros

Fixes https://github.com/tokio-rs/axum/issues/1110 This removes the request body type param from everything (`Router`, `FromRequest`, `RequestParts`, etc...). The goal being to improve usability and solve issues like https://github.com/tokio-rs/axum/issues/1110. The general approach is...

A-axum
A-axum-macros
A-axum-extra
A-axum-core

Don't worry too much about the large diff. The vast majority of the changes is from code that previously was a `macro_rules` macro now being expanded and committed. --- Fixes...

A-axum
A-axum-macros
A-axum-extra
A-axum-core

`FromRequest` with a shared-reference parameter would mostly be useful for middleware or other places where you have a request that you want to pull some bits out of while knowing...

C-musings
E-hard
A-axum-core

## Motivation I'm trying to use axum's routing and request extraction hardware for a Cloudflare Worker. Workers run in a WASM context (v8 isolate) and therefore tokio cannot be used....