Commit Graph
786 Commits
Author SHA1 Message Date
David Pedersen 4b6c18145d make Router:state private 2022-07-03 16:29:53 +02:00
David Pedersen 90e9b34736 checkpoint 2022-07-03 16:21:43 +02:00
David Pedersen a5b6b94530 checkpoint 2022-07-03 15:56:48 +02:00
David Pedersen 63560e0299 checkpoint 2022-07-03 13:18:27 +02:00
David Pedersen 4ecdcf691e check point 2022-07-03 03:17:52 +02:00
David Pedersen a09fe48693 checkpoint 2022-07-03 00:58:33 +02:00
David Pedersen 43169f96cd add state parameter to router 2022-07-03 00:44:19 +02:00
David Pedersen 7ed35d2b5f Merge branch 'main' into separate-nesting-opaque-services 2022-06-30 00:30:22 +02:00
David PedersenandJonas Platte bbf1852c56 Apply suggestions from code review
Co-authored-by: Jonas Platte <[email protected]>
2022-06-30 00:26:49 +02:00
David PedersenandJonas Platte a4c820420d Remove trailing slash redirects (#1119)
* Prepare axum-next branch

* Remove deprecated `extractor_middleware` function (#1077)

* 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

* 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

* Fix changelog

* Prepare axum-next branch

* Remove trailing slash redirects

* changelog link

* Fix changelog

* remove asserting to make make the test more clear

* remove tsr related feature

* Add `RouterExt::route_with_tsr`

* Apply suggestions from code review

Co-authored-by: Jonas Platte <[email protected]>

* Update axum-extra/src/routing/mod.rs

Co-authored-by: Jonas Platte <[email protected]>

* fix typos in docs

* Update axum/CHANGELOG.md

Co-authored-by: Jonas Platte <[email protected]>

* mention `RouterExt::route_with_tsr` in the changelog

Co-authored-by: Jonas Platte <[email protected]>
2022-06-30 00:22:43 +02:00
David Pedersen 657a0893b5 fix MatchedPath with Routers nested with nest_service 2022-06-29 22:48:44 +02:00
David Pedersen fb5219f9cd fix docs 2022-06-29 22:21:28 +02:00
David Pedersen b22077862e update changelog 2022-06-29 22:20:24 +02:00
David Pedersen 276a950b67 Only accept Router in Resource::{nest, nest_collection} 2022-06-29 22:20:12 +02:00
David Pedersen 79daaf0e04 fix 2022-06-29 22:13:17 +02:00
David Pedersen 014067ebf3 update docs 2022-06-29 22:09:43 +02:00
David Pedersen 2c54bb5b3b fix doc tests 2022-06-29 21:32:41 +02:00
David Pedersen 23721f213f Merge branch 'main' into separate-nesting-opaque-services 2022-06-29 21:21:29 +02:00
David Pedersen 23808f72a2 Fix changelog 2022-06-28 22:07:10 +02:00
David Pedersen 2b386c0baa 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-28 22:07:10 +02:00
David Pedersen 661473dcbc 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-28 22:07:10 +02:00
David Pedersen 56ddabcd7d Remove deprecated extractor_middleware function (#1077) 2022-06-28 22:07:10 +02:00
David Pedersen 7e794e9d1d axum: Version 0.5.10 (#1128) axum-v0.5.10 2022-06-28 21:32:39 +02:00
David PedersenandJonas Platte a8d0ce8c03 Fix possible panic when doing trailing slash redirect (#1124)
* Fix possible panic when doing trailing slash redirect

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

* changelog link

* Update axum/src/routing/mod.rs

Co-authored-by: Jonas Platte <[email protected]>

Co-authored-by: Jonas Platte <[email protected]>
2022-06-28 16:58:13 +02:00
David Pedersen 905bbfb8e2 axum-extra: Version 0.3.5 (#1125) axum-extra-v0.3.5 2022-06-27 21:08:12 +02:00
David Pedersen b10c9d34bd axum-macros: Version 0.2.3 (#1126) axum-macros-v0.2.3 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 PedersenandJonas Platte cb207472f4 Make Router faster to clone (#1123)
* Make `Router` faster to clone

* changelog

* Update axum/src/routing/mod.rs

Co-authored-by: Jonas Platte <[email protected]>

* fix

* Update axum/src/routing/mod.rs

Co-authored-by: Jonas Platte <[email protected]>

Co-authored-by: Jonas Platte <[email protected]>
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) axum-v0.5.9 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) axum-v0.5.8 2022-06-18 11:38:52 +02:00
David Pedersen 7deaff7e1e axum-core: Version 0.2.6 (#1103) axum-core-v0.2.6 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 PedersenandJonas Platte 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 <[email protected]>

* format

Co-authored-by: Jonas Platte <[email protected]>
2022-06-15 22:42:49 +02:00
ShingandDavid Pedersen 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 <[email protected]>

* remove unnecessary mut

* fix cargo fmt

Co-authored-by: David Pedersen <[email protected]>
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 BernardandDavid Pedersen 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 <[email protected]>
2022-06-11 21:33:39 +02:00
David Pedersen 2ddd0a230c Break Router::nest into nest and nest_service methods 2022-06-11 13:19:27 +02:00
David PedersenandJonas Platte dbdbd0165e Support Forwarded in Host extractor (#1078)
* Support `Forwarded` in `Host` extractor

* changelog

* Update axum/src/extract/host.rs

Co-authored-by: Jonas Platte <[email protected]>

* look for `host` key

Co-authored-by: Jonas Platte <[email protected]>
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) axum-v0.5.7 2022-06-08 16:08:11 +02:00