Commit graph

774 commits

Author SHA1 Message Date
David Pedersen
cc07b8dbd0 fix examples 2022-06-27 21:55:55 +02:00
David Pedersen
069b660a76 more docs 2022-06-27 21:55:55 +02:00
David Pedersen
9036216821 fix docs 2022-06-27 21:55:55 +02:00
David Pedersen
05e9800515 remove out of date todo 2022-06-27 21:55:55 +02:00
David Pedersen
26259b2fe4 generate tuple impls 2022-06-27 21:55:54 +02:00
David Pedersen
47955ae5a1 fix some todos 2022-06-27 21:55:26 +02:00
David Pedersen
48f5af2aa6 Only allow last extractor to mutate the request 2022-06-27 21:55:26 +02:00
David Pedersen
01350b13f4 Prepare axum-next branch 2022-06-27 21:55:11 +02:00
David Pedersen
e53b8f71e1 Fix changelog 2022-06-27 21:13:04 +02:00
David Pedersen
263f964b0f Panic on overlapping routes in MethodRouter (#1102)
* Panic on overlapping routes in `MethodRouter`

* changelog link

* add test to ensure `head` and `get` don't overlap
2022-06-27 21:12:39 +02:00
David Pedersen
6b33e46cf1 Allow Error: Into<Infallible> for Route::{layer, route_layer} (#948)
* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` (#924)

* Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}`

Fixes https://github.com/tokio-rs/axum/issues/922

* changelog

* fixup changelog
2022-06-27 21:12:39 +02:00
David Pedersen
83ec57b4cc Remove deprecated extractor_middleware function (#1077) 2022-06-27 21:12:39 +02:00
David Pedersen
aa6557cf0f Prepare axum-next branch 2022-06-27 21:12:39 +02:00
David Pedersen
905bbfb8e2
axum-extra: Version 0.3.5 (#1125) 2022-06-27 21:08:12 +02:00
David Pedersen
b10c9d34bd
axum-macros: Version 0.2.3 (#1126) 2022-06-27 21:06:59 +02:00
David Pedersen
11179b8033
Silence "unnecessary use of to_string" lint for #[derive(TypedPath)] (#1117)
* Fix "unnecessary use of `to_string`" lint for `#[derive(TypedPath)]`

* changelog

* Update axum-macros/CHANGELOG.md
2022-06-27 18:57:02 +00:00
David Pedersen
f6b1d35c51
Use minimal dependency versions for MSRV tests on CI (#1109) 2022-06-27 20:44:20 +02:00
David Pedersen
cb207472f4
Make Router faster to clone (#1123)
* Make `Router` faster to clone

* changelog

* Update axum/src/routing/mod.rs

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>

* fix

* Update axum/src/routing/mod.rs

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-06-27 11:00:19 +02:00
David Pedersen
523c7fed88 Depend on right version of tokio-stream 2022-06-25 12:26:37 +02:00
David Pedersen
6b6a415622
Add JsonLines extractor and response (#1093) 2022-06-20 20:49:18 +02:00
David Pedersen
fabb205a9e
axum: Version 0.5.9 (#1108) 2022-06-20 13:44:15 +02:00
David Pedersen
7f203b96e6
Fix build with form feature without headers feature (#1107)
Fixes #1106
2022-06-20 09:14:21 +02:00
David Pedersen
5ac0b2b3d7
axum: Version 0.5.8 (#1104) 2022-06-18 11:38:52 +02:00
David Pedersen
7deaff7e1e
axum-core: Version 0.2.6 (#1103) 2022-06-18 11:00:19 +02:00
Marcus Griep
2e2988b77d
minor update to aliri crates (#1101) 2022-06-18 08:06:31 +02:00
Jonas Platte
1812c4dfe8
Remove explicit TryFrom, TryInto imports (#1099) 2022-06-17 18:36:49 +00:00
David Pedersen
2f64064650
Implement IntoResponse for Form (#1095) 2022-06-17 18:23:57 +00:00
David Pedersen
93251fa203
Bump MSRV to 1.56 and update to the 2021 edition (#1098) 2022-06-17 20:11:35 +02:00
David Pedersen
fd70f81c46
More robust asset paths in examples (#1090)
* More robust asset paths in examples

* Update examples/low-level-rustls/src/main.rs

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>

* format

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-06-15 22:42:49 +02:00
Shing
cbb2e8a244
Fix missing assets in websockets example (#1089)
* fix missing assets running websockets example

* Update examples/websockets/src/main.rs

Co-authored-by: David Pedersen <david.pdrsn@gmail.com>

* remove unnecessary mut

* fix cargo fmt

Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2022-06-15 10:04:44 +02:00
David Pedersen
ad67289226
Add table of contents to some modules (#1084) 2022-06-14 14:10:04 +02:00
David Bernard
18e45c4fdd
ECOSYSTEM.md: add axum-tracing-opentelemetry and sandbox_axum_observability (#1087)
* ECOSYSTEM.md: add axum-tracing-opentelemetry and sandbox_axum_observability

* Update ECOSYSTEM.md

Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2022-06-11 21:33:39 +02:00
David Pedersen
dbdbd0165e
Support Forwarded in Host extractor (#1078)
* Support `Forwarded` in `Host` extractor

* changelog

* Update axum/src/extract/host.rs

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>

* look for `host` key

Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-06-10 22:30:01 +02:00
David Pedersen
f66893fbda Add missing version for serde_json in Cargo.toml
No idea how that went away
2022-06-10 16:57:53 +02:00
David Pedersen
968ee44631
Sort dependencies in Cargo.tomls (#1076)
* sort dependencies

* check sorted deps on CI

* this should fail

* does caching matter?

* fix sorting
2022-06-10 08:59:17 +02:00
David Pedersen
453202b490
Document all cargo features (#1079) 2022-06-10 08:46:09 +02:00
David Pedersen
b6a2d9dba7 Use consistent todo comment casing 2022-06-09 20:47:23 +02:00
David Pedersen
7aa3f35129
axum: Version 0.5.7 (#1075) 2022-06-08 16:08:11 +02:00
David Pedersen
fbb4786851
axum-extra: Version 0.3.4 (#1074) 2022-06-08 15:58:37 +02:00
David Pedersen
a9eb4ac527
axum-core: Version 0.2.5 (#1073) 2022-06-08 15:56:56 +02:00
David Pedersen
ef750799fa
Automatically handle http_body::LengthLimitError (#1048)
* Automatically handle `http_body::LengthLimitError`

* add tower-http dev dep to axum-core

* just make it a link

* Make `FailedToBufferBody` an enum

* Fix tests now that tower-http handles `Content-Length`

* Bring back explanation for `LengthLimitError`

* remove todo we likely can't fix

* improve wording in docs
2022-06-08 13:47:57 +00:00
David Pedersen
73b1bafbf8
Add AsyncReadBody (#1072)
* Add `AsyncReadBody`

* changelog

* sort cargo.toml
2022-06-08 11:02:42 +02:00
David Pedersen
115a47b191
Remove tower's buffer feature (#1071)
Turns out we're not using it anymore and it saves depending on tokio-util.
2022-06-08 07:58:56 +00:00
David Pedersen
0936a246bf
Add extract::ws::close_code which contains constants for close codes (#1067)
The values and docs are copied from [tungstenite].

Fixes #1061

[tungstenite]: https://docs.rs/tungstenite/0.17.2/src/tungstenite/protocol/frame/coding.rs.html#119-188
2022-06-08 09:36:59 +02:00
David Pedersen
8ff275499b Add #1049 to changelogs 2022-06-06 18:00:52 +02:00
Matthias Vogelgesang
bff7d72c53
ECOSYSTEM.md: add wastebin pastebin service (#1065) 2022-06-03 14:34:38 +02:00
Luca Barbato
bdfa3887f1
Fix a typo (#1064) 2022-06-03 08:30:48 +02:00
David Pedersen
6c10f41d94
Support Path<Vec<(String, String)>> (#1059)
* Support `Path<Vec<(String, String)>>`

* changelog
2022-05-27 14:11:33 +02:00
Vladimir
1c470ae677
ECOSYSTEM.md: Add axum-jrpc (#1056) 2022-05-26 12:07:26 +02:00
Ben Hansen
82e8eaeee4
ECOSYSTEM.md: Add Pinging.net as a showcase (#1051)
See https://github.com/benhansenslc/pinging or https://www.pinging.net/about for details about the open-source project.
2022-05-24 16:46:38 +02:00