Skip to content

Commit ea0f0e3

Browse files
authored
docs(examples): update dependencies (#3226)
* docs(examples): update dependencies (#3099) Tested by dropping this batch of dependencies into a freshly gen'd cargo project and copying in every example in turn and making sure it runs. * Also some spelling and formatting corrections ❤️ * fix(examples): most examples require --features="full" (#3099)
1 parent 16a921f commit ea0f0e3

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

examples/README.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
# Examples of using hyper
22

3-
These examples show of how to do common tasks using `hyper`. You may also find the [Guides](https://hyper.rs/guides) helpful.
3+
These examples show how to do common tasks using `hyper`. You may also find the [Guides](https://hyper.rs/guides/1/) helpful.
44

5-
If you checkout this repository, you can run any of the examples `cargo run --example example_name`.
5+
If you checkout this repository, you can run any of the examples with the command:
6+
7+
`cargo run --example {example_name} --features="full"`
68

79
### Dependencies
810

9-
Most of these examples use these dependencies:
11+
A complete list of dependencies used across these examples:
1012

1113
```toml
1214
[dependencies]
13-
hyper = { version = "0.14", features = ["full"] }
15+
hyper = { version = "1.0.0-rc.3", features = ["full"] }
1416
tokio = { version = "1", features = ["full"] }
1517
pretty_env_logger = "0.4"
18+
http-body-util = "0.1.0-rc.2"
19+
bytes = "1"
20+
serde = { version = "1.0", features = ["derive"] }
21+
serde_json = "1.0"
22+
url = "2.2"
23+
http = "0.2"
24+
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
1625
```
1726

1827
## Getting Started
1928

2029
### Clients
2130

22-
* [`client`](client.rs) - A simple CLI http client that request the url passed in parameters and outputs the response content and details to the stdout, reading content chunk-by-chunk.
31+
* [`client`](client.rs) - A simple CLI http client that requests the url passed in parameters and outputs the response content and details to the stdout, reading content chunk-by-chunk.
2332

2433
* [`client_json`](client_json.rs) - A simple program that GETs some json, reads the body asynchronously, parses it with serde and outputs the result.
2534

0 commit comments

Comments
 (0)