Skip to content

Add FromExtractor and deprecate extractor_middleware - #957

Merged
davidpdrsn merged 8 commits into
tokio-rs:mainfrom
arniu:from-extractor
Apr 24, 2022
Merged

Add FromExtractor and deprecate extractor_middleware#957
davidpdrsn merged 8 commits into
tokio-rs:mainfrom
arniu:from-extractor

Conversation

@arniu

@arniu arniu commented Apr 22, 2022

Copy link
Copy Markdown
Contributor

Resolve #954

@jplatte jplatte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for working in this!

You seem to have run some formatting on the changelog, please undo those (unrelated) changes.

Also, in addition to the function, the layer and response future type are also part of the public API and need to stay accessible under their old paths / names (as re-exports) to maintain backwards compatibility.

@jplatte
jplatte requested a review from davidpdrsn April 23, 2022 08:19

@davidpdrsn davidpdrsn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

Wanna add an #[allow(deprecated)] to axum/src/extract/mod.rs to fix the warnings shown in GitHub?

Comment thread axum/src/extract/extractor_middleware.rs Outdated
@davidpdrsn
davidpdrsn enabled auto-merge (squash) April 24, 2022 15:26
@davidpdrsn
davidpdrsn merged commit ebecac5 into tokio-rs:main Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move axum::extract::extractor_middleware to axum::middleware::from_extractor

3 participants