Jonas Platte
5cdd8a4f18
axum 0.8.0-rc.1 ( #3073 )
2024-12-17 23:47:42 +01:00
Jonas Platte
d84136e1e4
Centralize lint configuration ( #3055 )
2024-11-30 16:53:48 +01:00
Jonas Platte
56c709b33d
Some documentation fixes ( #3027 )
2024-11-14 21:12:16 +01:00
Jonas Platte
47791cb593
Remove versions from internal dev-dependencies
...
This breaks the cyclic dependencies for publishing.
2024-10-05 11:44:31 +00:00
Jonas Platte
9a69e415fb
Release axum 0.8.0-alpha.1 and related crates ( #2958 )
2024-10-05 11:20:05 +02:00
Jonas Platte
689ca1aea2
Update MSRV for all crates to 1.75 ( #2943 )
2024-09-28 21:21:41 +00:00
Jonas Platte
a73dab417d
Bump versions
2024-09-20 21:25:30 +02:00
vsuryamurthy
670bf694dc
Remove unused dependency heck from axum-macros ( #2798 )
2024-06-21 14:08:38 +02:00
David Pedersen
9ebd105d04
Release ( #2510 )
2024-01-13 14:31:03 +01:00
David Pedersen
ab36eda6aa
Release axum and axum-core ( #2402 )
2023-12-04 09:16:15 +01:00
David Pedersen
b7d14d3602
Release axum 0.7 ( #2354 )
2023-11-27 09:30:38 +01:00
David Pedersen
43b14a5f02
Update to latest versions of hyper and http-body ( #1882 )
...
Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2023-11-23 11:03:03 +00:00
Jonas Platte
e84d563b26
Improve documentation of axum::Form ( #2289 )
2023-10-26 06:37:19 +09:00
David Pedersen
449e4c1138
Add docsrs
feature to axum-core and axum-macros ( #2164 )
2023-09-16 19:47:49 +00:00
nabbisen
70171980cc
fix typo in axum-macros README: according to Cargo.toml msrv is 1.60 ( #2204 )
2023-09-11 12:03:50 +00:00
David Pedersen
877e3fe4de
Move TypedHeader
to axum-extra ( #1850 )
...
Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2023-04-21 17:45:31 +02:00
David Pedersen
562fa206f0
Release axum, axum-extra, axum-macros ( #1875 )
2023-03-22 15:22:47 +01:00
David Pedersen
8e1eb8979f
Update to syn 2 ( #1862 )
2023-03-18 19:23:27 +00:00
David Pedersen
1133425d6b
Release axum, axum-macros, and axum-extra ( #1843 )
2023-03-13 11:00:13 +01:00
David Pedersen
bc3c35ea5a
Release all the crates ( #1812 )
2023-03-03 18:16:24 +01:00
Spencer Bartholomew
6067223fcc
update tokio dep to fix potential security vulnerability ( #1787 )
2023-02-27 18:40:03 +01:00
David Pedersen
08bac36519
Release axum and axum-extra ( #1788 )
2023-02-27 09:41:11 +01:00
David Pedersen
e6ff0281ae
Try cargo public-api-crates
on CI ( #1761 )
2023-02-16 22:41:41 +01:00
David Pedersen
c18ff9dd63
Release axum, axum-extra, and axum-macros ( #1750 )
2023-02-12 12:40:42 +01:00
David Pedersen
93ecabf449
Release axum and axum-macros ( #1743 )
2023-02-11 22:32:16 +01:00
David Pedersen
4a5dc4391c
Release axum and axum-macros ( #1721 )
2023-01-24 13:31:33 +01:00
David Pedersen
1be25d9496
Add internal macro to make tests of nest
easier to write ( #1694 )
2023-01-14 14:12:01 +00:00
David Pedersen
e3aaeb3cb7
Release axum, axum-core, and axum-macros ( #1688 )
2023-01-09 13:54:49 +01:00
David Pedersen
1b6780cf6c
axum 0.6 and friends 🎉 ( #1570 )
...
* changelog
* bump versions
* reorder changelogs a bit
* Apply suggestions from code review
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
* Expand fallback inheritance
* Reword tsr
* Mention `parse-body-based-on-content-type` example
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-11-25 12:29:58 +00:00
David Pedersen
99c0224a7c
axum-extra 0.4.0-rc.3 ( #1545 )
...
* axum-extra 0.4.0-rc.3
Needs a new release because it uses the old state inheritance whic is
removed in the latest rc.
* fix
2022-11-19 13:02:11 +01:00
David Pedersen
878ae73e6d
New release candidates ( #1541 )
2022-11-18 17:29:47 +01:00
David Pedersen
64960bb19c
Type safe state inheritance ( #1532 )
...
* Make state type safe
* fix examples
* remove unnecessary `#[track_caller]`s
* Router::into_service -> Router::with_state
* fixup docs
* macro docs
* add missing docs
* fix examples
* format
* changelog
* Update trybuild tests
* Make sure fallbacks are still inherited for opaque services (#1540 )
* Document nesting routers with different state
* fix leftover conflicts
2022-11-18 11:02:58 +00:00
David Pedersen
e39d053d2f
New release candidates ( #1514 )
...
* New release candidates
* Update axum/Cargo.toml
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-11-09 09:01:47 +01:00
David Pedersen
c3f3db79ec
Support State
with #[derive(FromRequest[Parts])]
( #1391 )
...
* Support `State` with `#[derive(FromRequest[Parts])]`
Fixes https://github.com/tokio-rs/axum/issues/1314
This makes it possible to extract things via `State` in
`#[derive(FromRequet)]`:
```rust
struct Foo {
state: State<AppState>,
}
```
The state can also be inferred in a lot of cases so you only need to
write:
```rust
struct Foo {
// since we're using `State<AppState>` we know the state has to be
// `AppState`
state: State<AppState>,
}
```
Same for
```rust
struct Foo {
#[from_request(via(State))]
state: AppState,
}
```
And
```rust
struct AppState {}
```
I think I've covered all the edge cases but there are (unsurprisingly) a
few.
* make sure things can be combined with other extractors
* main functions in ui tests don't need to be async
* Add test for multiple identicaly state types
* Add failing test for multiple states
2022-09-23 23:50:50 +02:00
David Pedersen
54d8439e35
Ship rc.2 ( #1363 )
...
* rc.2
* don't bump version of axum-macros
* fix
* Update axum/Cargo.toml
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
* undo release of axum-extra
* fix
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-09-11 16:42:04 +02:00
David Pedersen
b315b60bca
Bump version of all crates ( #1310 )
...
* Bump version of all crates
* use the right versions inside the workspace
2022-08-23 22:57:13 +02:00
David Pedersen
568394a28e
Support changing state type in #[debug_handler]
( #1271 )
...
* support setting body type for #[debug_handler]
* Use lookahead1 to give better errors and detect duplicate arguments
* fix docs link
2022-08-18 11:41:14 +02:00
David Pedersen
ac7037d282
Support using a different rejection for #[derive(FromRequest)]
( #1256 )
2022-08-12 16:05:27 +00:00
Jonas Platte
7cbb7cf135
Use new Cargo features to avoid implicit features for optional dependencies ( #1239 )
...
* Fix changelog entry for MSRV change in axum-extra 0.3.5
* Bump MSRV to 1.60 for axum, axum-extra, axum-macros
* Use new Cargo features to avoid implicit features for optional dependencies
2022-08-09 18:43:02 +02:00
Jonas Platte
141198ce19
Declare MSRV in Cargo manifests, not .clippy.toml ( #1206 )
2022-07-28 15:31:47 +02:00
David Pedersen
2966407dc1
Re-export debug_handler
from axum ( #1144 )
...
* Re-export `debug_handler` from axum
Fixes #1143
* also axum-extra
2022-07-04 09:10:52 +00:00
David Pedersen
b10c9d34bd
axum-macros: Version 0.2.3 ( #1126 )
2022-06-27 21:06:59 +02:00
David Pedersen
f6b1d35c51
Use minimal dependency versions for MSRV tests on CI ( #1109 )
2022-06-27 20:44:20 +02:00
David Pedersen
93251fa203
Bump MSRV to 1.56 and update to the 2021 edition ( #1098 )
2022-06-17 20:11:35 +02:00
Jonas Platte
80d0cc19e6
axum-macros: 0.2.2 ( #1044 )
2022-05-18 20:23:56 +02:00
David Pedersen
05529c8efc
Check Request
and Path
in debug_handler
( #1035 )
...
* Check `Request` and `Path` in `debug_handler`
* changelog links
* Include errors with the input
2022-05-16 10:05:17 +00:00
David Pedersen
46e6d3493b
axum-macros: Version 0.2.1 ( #1015 )
2022-05-10 11:46:17 +00:00
David Pedersen
a3b6cbc99c
axum-extra: Version 0.3.0 ( #974 )
...
* axum-extra: Version 0.3.0
* add tower-http update to changelog
2022-04-27 10:27:41 +02:00
David Pedersen
5d0a7b440c
axum-extra: Version 0.2.0
2022-03-31 20:48:17 +02:00
David Pedersen
f69d2dbf40
axum-macros: Version 0.2.0
2022-03-31 20:45:01 +02:00