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

Next breaking release of axum, axum-core, and axum-extra #644

Merged
merged 9 commits into from
Jan 23, 2022
Merged

Conversation

davidpdrsn
Copy link
Member

@davidpdrsn davidpdrsn commented Dec 21, 2021

This branch contains the changes we're planning to make in the next breaking release of axum. Note this is a draft since we don't want to merge it yet. Want to wait a bit longer before making another breaking release.

PRs merged (for writing the changelog):

Note to self: Don't squash merge this. Probably want to interactive rebase to make the git history look nice.

@davidpdrsn davidpdrsn marked this pull request as draft December 21, 2021 09:48
@davidpdrsn davidpdrsn added A-axum breaking change A PR that makes a breaking change. T-release Topic: releases labels Dec 21, 2021
@davidpdrsn davidpdrsn added this to the 0.5 milestone Dec 21, 2021
@davidpdrsn davidpdrsn changed the title axum 0.5: release branch Next breaking release of axum and axum-core Dec 21, 2021
@davidpdrsn davidpdrsn force-pushed the axum-next branch 3 times, most recently from f04cf94 to a7de04f Compare January 3, 2022 17:50
@davidpdrsn davidpdrsn changed the title Next breaking release of axum and axum-core Next breaking release of axum, axum-core, and axum-extra Jan 13, 2022
Nick Ashley and others added 8 commits January 23, 2022 17:46
Replaces `Field::content_type`'s return type with `&str`.
This is a breaking change.

Closes #637
* Make `TypedHeaderRejectionReason` `#[non_exhaustive]`

Fixes #660

* add changelog pr link
* Fix inconsistent indentation in axum/Cargo.toml

* Make MatchedPath and OriginalUri extractors and logic for them optional

… they add some runtime cost to handling any request that goes through
a Router, which only makes sense if they actually get used.

Enable both features by default for convenience.
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
* Change `HeaderMap` extractor to clone the headers

* fix docs

* changelog

* inline variable

* also add changelog item to axum

* don't list types from axum in axum-core's changelog

* document that `HeaderMap::from_request` clones the headers

* fix typo

* a few more typos
* Remove `RequestParts::take_extensions`

* fix out of date docs

* Remove RequestAlreadyExtracted and replace it with BodyAlreadyExtracted

* fix docs

* fix test

* Update axum-core/src/extract/mod.rs

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>

* Remove macro only used once

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
* Introduce IntoResponseHeaders trait

* Implement IntoResponseHeaders for HeaderMap

* Add impl IntoResponse for impl IntoResponseHeaders

… and update IntoResponse impls that use HeaderMap to be generic instead.

* Add impl IntoResponseHeaders for Headers

… and remove IntoResponse impls that use it.

* axum-debug: Fix grammar in docs

* Explain confusing error message in docs
@davidpdrsn davidpdrsn marked this pull request as ready for review January 23, 2022 16:51
@davidpdrsn davidpdrsn merged commit bf83f34 into main Jan 23, 2022
@davidpdrsn davidpdrsn deleted the axum-next branch June 11, 2022 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-axum A-axum-core A-axum-extra breaking change A PR that makes a breaking change. T-release Topic: releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants