David Pedersen
530b0906f7
Fix changelog date
2022-04-03 20:20:50 +02:00
David Pedersen
950dde2664
axum-extra: Version 0.2.1
2022-04-03 20:18:01 +02:00
David Pedersen
405e3f8c44
Add SpaRouter
( #904 )
2022-04-03 18:29:37 +02:00
David Pedersen
2270cf7b3e
Add "stream to file" example ( #903 )
...
* Add "stream to file" example
* add title tag
2022-04-03 12:28:29 +02:00
David Pedersen
01a4c88d7a
Add PrivateCookieJar
( #900 )
2022-04-01 16:37:55 +02:00
David Pedersen
da3ca22301
Fix SignedCookieJar
with custom key type ( #899 )
2022-04-01 11:40:42 +02:00
Paolo Barbolini
1b4c54c6e6
axum-extra: re-export the Expiration and SameSite structs from the cookie crate ( #898 )
2022-04-01 10:46:43 +02:00
Jonas Platte
1191b58083
Add RequestParts::extract
( #897 )
2022-04-01 09:25:15 +02:00
Andrew Wheeler(Genusis)
956c9f1d88
Added links to Community Projects Section within ECOSYSTEM.md ( #895 )
2022-04-01 08:19:14 +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
David Pedersen
cf12b3aa0f
Fix version of axum used locally
2022-03-31 20:45:01 +02:00
David Pedersen
fec64bc1b6
axum: Version 0.5.0
2022-03-31 20:37:45 +02:00
David Pedersen
fba2faa38f
axum-core: Version 0.2.0 ( #894 )
2022-03-31 20:36:12 +02:00
David Pedersen
d7860ea9e2
Copy over changelogs from v0.4.x branch ( #893 )
...
* Copy over changelogs from v0.4.x branch
Preparing to release 0.5
* bump crate versions
2022-03-31 20:21:55 +02:00
David Pedersen
21552fe434
Remove bound from into_make_service_with_connect_info
( #892 )
...
Fixes #859
2022-03-31 16:49:49 +00:00
Yotam Ofek
2e5d56a9b1
Update outdated Query
extractor docs. ( #891 )
2022-03-31 15:43:54 +02:00
arctic-alpaca
ffb6af7fed
Remove Datafuse from ECOSYSTEM ( #890 )
...
Datafuse is no longer using axum, see https://github.com/datafuselabs/databend/issues/2666
2022-03-31 14:25:35 +02:00
Evan Schwartz
3084dc10ca
Accept &str
for Redirect
( #889 )
...
* Accept &str for Redirect
* Fix doc example
* fix more docs examples
* update changelog
* fix changelog label
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2022-03-31 10:03:06 +02:00
Grzegorz Baranski
79501afd10
add ezsockets to community maintained ecosyste ( #885 )
2022-03-26 16:22:07 +01:00
Tv
dee4e73af4
Typos in docstrings ( #886 )
2022-03-24 20:56:05 +01:00
Marcus Griep
6aa678e8f2
docs: Add aliri_tower
as an ecosystem project ( #883 )
2022-03-24 20:55:12 +01:00
David Pedersen
56e2d57320
Change Handler
to have an associated Future
type ( #879 )
...
* Change `Handler` to have an associated `Future` type
This removes `#[async_trait]` from `Handler` and replaces that with an
associated `Future` type.
As hinted at in #878 I'm working on something with types that need to
implement `Handler`. I'm doing that by wrapping other `Handler` types so
I can implement `Handler` by simply delegating and thus don't need to
allocate another box for `#[async_trait]`. This change makes that
possible.
It does make `Handler` less ergonomic to implement but thats a very
niche feature so I'm fine with that. It wouldn't be appropriate for
`FromRequest` IMO.
* changelog
2022-03-21 13:32:06 +00:00
David Pedersen
6175f95f41
Unseal handler trait ( #878 )
2022-03-21 11:55:31 +01:00
David Pedersen
2c985246ba
Fix out of date docs for Json
( #871 )
...
Fixes https://github.com/tokio-rs/axum/issues/865
2022-03-19 01:24:28 +01:00
David Pedersen
437fe5b931
Make status codes for JsonRejection
more precise ( #868 )
...
* Fix status codes for `JsonRejection` rejections
Fixes #865
* Apply suggestions from code review
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-03-18 16:53:39 +01:00
David Pedersen
33ee55e52c
Add example for consuming request body in middleware and extractor ( #861 )
2022-03-18 15:41:38 +00:00
Nathaniel McCallum
30b2cf8f96
Implement From<S> for StreamBody<S> ( #866 )
...
Although this shadows `StreamBody::new()`, having `From` allows for
trivial bounds creation on associated types.
Signed-off-by: Nathaniel McCallum <nathaniel@profian.com>
2022-03-18 15:40:27 +00:00
David Pedersen
a0ae0c48aa
Make RequestParts::body_mut
return &mut Option<B>
( #869 )
2022-03-18 15:39:13 +00:00
David Pedersen
debc3f5be9
Don't run nightly on CI ( #870 )
...
* Exclude sqlx example
Getting an ICE
https://github.com/tokio-rs/axum/runs/5602144413?check_suite_focus=true .
Will look into that later.
* actually it was nightly's fault
* and don't test things on nightly
2022-03-18 16:28:23 +01:00
Jonas Platte
422a883cb2
Fix two separate lists in Tutorials section of ECOSYSTEM.md ( #854 )
2022-03-12 22:09:30 +01:00
Joel Parker Henderson
770fe8bbeb
Add ecosystem tutorial link to demo-rust-axum ( #852 )
2022-03-12 18:54:01 +01:00
Jonas Platte
80753f8f5c
Remove unnecessary mut from (Signed)CookieJar examples ( #850 )
2022-03-10 12:53:51 +01:00
David Pedersen
88974f4299
Add missing changelog items ( #845 )
...
* Add missing changelog items
* Update axum/CHANGELOG.md
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2022-03-09 15:07:41 +00:00
David Pedersen
14960e9a11
fix changelog links
2022-03-09 15:43:54 +01:00
David Pedersen
401c7a324a
Fix routing for opaque nested services ( #842 )
...
* Fix routing for opaque nested services
* Also test `MatchedPath`
* clean up and more comments
2022-03-09 11:25:06 +01:00
David Pedersen
70e3024068
Don't set extension we never use ( #844 )
...
* Remove unused internal helper
* Don't set extension we never use
2022-03-09 11:05:24 +01:00
David Pedersen
f9a94ca7eb
Add security note about extract::Host
( #839 )
2022-03-09 10:18:12 +01:00
Ibraheem Ahmed
04dd7617a4
update to matchit 0.5 ( #843 )
2022-03-09 09:28:19 +01:00
David Pedersen
19eda2f566
fix ups: include all crates in workspace
2022-03-08 21:32:54 +01:00
David Pedersen
dfa2e3b09f
Fix nesting of opaque services that paths that contain params ( #841 )
...
* checkpoint
* fix it
* more consistent macros
* fix msrv
2022-03-08 21:27:44 +01:00
David Pedersen
0600eff31a
Use IntoResponse
rather than Response::builder
internally ( #837 )
2022-03-07 16:49:03 +01:00
David Pedersen
87a2b0dac1
Implement IntoResponseParts
for Option<T>
( #838 )
2022-03-07 16:37:34 +01:00
Trent
843437b501
Add Host extractor ( #827 )
2022-03-06 16:29:10 +00:00
David Pedersen
b05a5c6dfe
Make it more obvious that NEST_TAIL_PARAM
is reserved ( #836 )
2022-03-06 16:01:14 +00:00
David Pedersen
a438e6b106
Refactor storing URL params in extensions ( #833 )
2022-03-06 12:41:16 +01:00
Jonas Platte
79b94b9bd6
Replace set_var usage in examples ( #829 )
...
* examples: Fix inconsistent toml formatting
* examples: Replace set_var usage
2022-03-06 12:37:00 +01:00
Jonas Platte
9470f5ae1d
Update MSRV in .clippy.toml ( #832 )
2022-03-05 14:23:27 +01:00
Jonas Platte
b6862ff63d
ci: Set CARGO_TERM_COLOR = always to get colored logs ( #831 )
2022-03-05 12:13:53 +01:00
Chris Connelly
903a887eb0
Add axum-sqlx-tx
to community projects ( #828 )
2022-03-05 01:26:40 +01:00