John Nunley
490c4c6e64
ex: Use smol-hyper in hyper-server example
...
Signed-off-by: John Nunley <dev@notgull.net>
2024-01-15 17:54:46 -08:00
John Nunley
f3054c3537
ex: Use smol-hyper in hyper-client example
...
Signed-off-by: John Nunley <dev@notgull.net>
2024-01-15 17:54:46 -08:00
Taiki Endo
9699af3649
Fix clippy::unused_unit warning in examples
...
```
warning: unneeded unit expression
--> examples/hyper-client.rs:139:25
|
139 | ()
| ^^ help: remove the final `()`
|
= note: `#[warn(clippy::unused_unit)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
warning: unneeded unit expression
--> examples/hyper-client.rs:147:25
|
147 | ()
| ^^ help: remove the final `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
warning: unneeded unit expression
--> examples/hyper-server.rs:154:29
|
154 | ... ()
| ^^ help: remove the final `()`
|
= note: `#[warn(clippy::unused_unit)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
warning: unneeded unit expression
--> examples/hyper-server.rs:162:29
|
162 | ... ()
| ^^ help: remove the final `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
```
2022-07-17 21:25:23 +09:00
Nick Parker
5f7c474431
Bump dev-dependencies for examples
...
Updates the dependencies used by examples to current - some have had API-breaking changes, so some examples are updated to catch up with those as well.
Note that the hyper-server example doesn't seem to work when tested, but it also didn't work before this PR. Looked at it a bit and found that poll_accept() returns Pending via incoming.poll_next() and then poll_accept() isn't invoked again. hyper-client meanwhile works fine, so the issue doesn't seem to be related to the AsyncRead updates.
2021-01-04 23:56:16 +13:00
Stjepan Glavina
1a542a8864
Fix compilation errors
2020-08-27 00:02:08 +02:00
Stjepan Glavina
9cffe01a92
Big refactor
2020-07-23 12:24:16 +02:00
Stjepan Glavina
39f67144a4
Reexport other crates into smol
2020-07-20 19:20:29 +02:00
Stjepan Glavina
7a73c22814
Reduce the number of dependencies
2020-07-20 00:55:35 +02:00
Stjepan Glavina
9c28a276fa
Remove uses of async-net
2020-07-15 11:37:50 +02:00
Stjepan Glavina
f5805c87b8
Fix compilation errors
2020-07-14 23:26:28 +02:00
Stjepan Glavina
f61db4fcbe
Refactor
2020-07-14 21:19:01 +02:00
Stjepan Glavina
238b2a6f77
Explain you must be in examples directory
2020-04-28 13:43:47 +02:00
Stjepan Glavina
3e899311b0
More docs and comments
2020-04-26 19:38:08 +02:00
Stjepan Glavina
e932a9f4f2
More comments
2020-04-20 17:45:14 +02:00
Stjepan Glavina
9729f6ad59
More and cleaner examples
2020-04-01 21:40:27 +02:00
Stjepan Glavina
db73031707
Lots of changes
2020-03-31 18:04:16 +02:00
Stjepan Glavina
0fe80b6a2d
More examples
2020-03-29 17:59:28 +02:00