Igor Shevchenko
8e033e7f88
Fix typos in examples/diesel-postgres/src/main.rs
( #2159 )
2023-08-08 08:13:13 +00:00
Igor Shevchenko
9dbfdbb4df
Fix typo in prometheus-metrics/src/main.rs
( #2160 )
2023-08-08 08:11:01 +00:00
David Pedersen
e8cf5f4f0e
Mention tokio-stream in SSE example
2023-08-06 20:45:35 +02:00
David Pedersen
5b89f1dfaa
Add example showing how to proxy reqwest::Response
( #2138 )
2023-08-02 08:15:47 +00:00
Alex Butler
a6a849bb5b
Update tokio-tungstenite 0.20 ( #2116 )
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2023-08-02 09:38:56 +02:00
Adrian Jerome Wright
e5b0852bdb
Update main.rs - Correct method in comments ( #2132 )
2023-07-30 07:48:07 +00:00
tuhana
64c566cd1c
Fix typo on customize-extractor-error
example ( #2124 )
2023-07-27 14:03:10 +00:00
David Pedersen
f9ea40bb44
Don't depend on axum-macros in examples ( #2122 )
2023-07-26 20:21:39 +02:00
Raphael Nestler
b20e66e79a
Remove unnecessary allow(dead_code) from testing example ( #2117 )
2023-07-25 17:30:19 +00:00
David Pedersen
bb22802bfc
Update to latest sqlx in example ( #2099 )
2023-07-16 13:49:53 +02:00
David Pedersen
b34715fe81
Update to hyper 1.0.0-rc.4 ( #2094 )
2023-07-15 15:38:38 +00:00
Rodrigo Santiago
8cb11e7f94
Remove unwraps via '?' with anyhow crate for example-oauth ( #2069 )
2023-07-04 19:48:58 +00:00
David Pedersen
f4accdc95d
Remove unwrap from example-stream-to-file
2023-07-01 23:12:23 +02:00
David Pedersen
99e8828df5
Remove unwrap from example-reverse-proxy
2023-07-01 23:12:23 +02:00
David Pedersen
b1b0e45683
Remove sessions example
...
There are better libraries these days for doing sessions with axum. So
think this example was just causing more confusion than helping.
2023-07-01 23:12:20 +02:00
Alex Butler
26daec2b17
Update tokio-tungstenite to 0.19 ( #2021 )
...
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-06-23 00:03:30 +02:00
David Pedersen
b7665b209a
Fix CI ( #2054 )
2023-06-22 23:20:46 +02:00
Jerry Wang
7208cdf795
Fix the cargo hack
check ( #2013 )
2023-05-18 18:40:19 +00:00
David Pedersen
db300efc33
Remove impl Connected<&AddrStream> for SocketAddr
( #1954 )
2023-04-21 18:24:47 +02: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
c97967252d
Add serve
function and remove Server
re-export ( #1868 )
2023-04-21 17:45:31 +02:00
David Pedersen
6703f8634c
Remove B
type param: Follow ups ( #1789 )
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
2023-04-21 17:45:31 +02:00
David Pedersen
4e4c29175f
Remove B
type param ( #1751 )
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
2023-04-21 17:45:31 +02:00
David Pedersen
39bb28130d
Enable println
warning ( #1929 )
2023-04-14 22:26:56 +02:00
David Pedersen
6b106f4bab
Log built-in rejections ( #1890 )
2023-04-11 16:57:49 +02:00
David Pedersen
24f8dc53f4
Update rest-grpc-multiplex
example to include reflection ( #1902 )
2023-04-01 20:49:36 +02:00
Georg Semmler
9da1897688
Add a diesel and diesel-async example ( #1853 )
...
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-03-28 17:32:00 +02:00
Jonas Platte
2600c22703
Make tracing-aka-logging example more realistic ( #1869 )
2023-03-21 11:17:31 +01:00
David Pedersen
8e1eb8979f
Update to syn 2 ( #1862 )
2023-03-18 19:23:27 +00:00
Jonas Platte
dc480f7b0e
Re-integrate examples into the root workspace ( #1466 )
...
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-03-10 12:02:11 +01:00
Firstyear
e7eda0e416
Add low level OpenSSL example ( #1828 )
...
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-03-10 08:51:45 +00:00
Moises-Herradon-Cueto
2c1dde7c07
Fix static-file-server example instructions ( #1832 )
...
Co-authored-by: MoisesPotato <28111500+MoisesPotato@users.noreply.github.com>
2023-03-10 09:51:22 +01:00
John Downey
db22b7309d
Remove remnants of spa feature ( #1802 )
...
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-03-03 14:43:19 +00:00
David Pedersen
279a8e2bf0
Add example showing how to run axum on hyper 1.0 ( #1791 )
2023-02-26 19:05:12 +01:00
David Pedersen
1dc4b44472
Use JsonRejection::{status, body_text}
in customize extractor error example ( #1790 )
2023-02-25 15:02:02 +01:00
David Pedersen
27f05ad32e
Remove SpaRouter
( #1784 )
2023-02-25 11:05:23 +01:00
David Pedersen
f726f16b6d
Update to tower-http 0.4 ( #1783 )
2023-02-24 20:51:30 +00:00
David Pedersen
143c415955
Add MockConnectInfo
( #1767 )
2023-02-17 13:09:29 +01:00
FrankReh
6d815e2b0a
Fix some comments in websockets example ( #1702 )
2023-01-20 14:43:47 +01:00
tottoto
b07918b213
Update to tonic 0.8 ( #1700 )
2023-01-20 10:34:44 +01:00
David Pedersen
00d20eb007
Simpify parse-body-based-on-content-type
example ( #1697 )
2023-01-14 18:39:09 +01:00
Alex Pyattaev
8d92902c8e
Updated websocket example to improve clarity and to be more distinct from chat example ( #1637 )
...
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
2023-01-08 15:51:59 +00:00
David Pedersen
3d31bcb6fb
Remove lingering async-graphql example file
...
It should have been deleted previously
2023-01-08 16:28:45 +01:00
Hans Meine
7192c590c9
add more comments to chat example ( #1665 )
2023-01-08 15:24:19 +00:00
Lukas Kalkhoran
71e83291e1
Fix typo ( #1646 )
2022-12-16 10:16:09 +00:00
tottoto
6c133be5b7
Refactor initializing tracing-subscriber in examples ( #1596 )
...
* Refactor initializing tracing-subscriber
* Revert "Refactor initializing tracing-subscriber"
This reverts commit 0876260bf9
in favor of tracing_subscriber::registry.
* Use EnvFilter::try_from_default_env in chat example
* Use EnvFilter::try_from_default_env in examples
2022-11-30 10:46:19 +01:00
tottoto
2c74c538dd
Fix clippy warning in example ( #1597 )
2022-11-29 23:39:11 +00:00
David Pedersen
0b26411f39
Change Router::with_state
and impl Service for Router<()>
( #1552 )
...
* Implement `Service` for `Router<(), B>`
* wip
* wip
* fix some tests
* fix examples
* fix doc tests
* clean up docs
* changelog
* fix
* also call `with_state` when converting `MethodRouter` into a `MakeService`
* suggestions from review
2022-11-24 14:43:10 +00:00
David Pedersen
468985373a
Add example of how to test WebSockets ( #1535 )
2022-11-18 15:40:21 +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