Skip to content

Commit 23b751f

Browse files
authored
Change Rust example to axum
Older example based on hyper is removed from Github.
1 parent a68a17d commit 23b751f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/content/docs/workers/languages/rust/crates.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ The [`reqwest` library](https://docs.rs/reqwest/latest/reqwest/) can be compiled
3838

3939
[Refer to the `tokio-postgres` example](https://github.com/cloudflare/workers-rs/tree/main/examples/tokio-postgres) for more information.
4040

41-
## `hyper`
41+
## `axum`
4242

43-
The `hyper` crate contains two HTTP clients, the lower-level `conn` module and the higher-level `Client`.
44-
The `conn` module can be used with Workers `Socket`, however `Client` requires timing dependencies which are
45-
not yet Wasm friendly.
43+
The `axum` crate is a web application framework that focuses on ergonomics and modularity.
4644

47-
[Refer to the `hyper` example](https://github.com/cloudflare/workers-rs/tree/main/examples/hyper) for more information.
45+
[Refer to the `axum` example](https://github.com/cloudflare/workers-rs/tree/main/examples/axum) for more information.

0 commit comments

Comments
 (0)