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
John Nunley
19ca79660f
breaking: Bump all subcrates to their newest versions
...
This is a breaking change.
Signed-off-by: John Nunley <dev@notgull.net>
2023-11-01 19:30:30 -07:00
Taiki Endo
7e95fff0bf
Use rustix in linux-timerfd example
2023-08-30 01:53:44 +09:00
Taiki Endo
8a67449e06
Remove tungstenite dev-dependency
...
Use re-export from async-tungstenite.
2023-08-06 16:41:08 +09:00
Taiki Endo
4604978cf0
Fix deprecated warning in example
...
```
error: use of deprecated method `inotify::Inotify::add_watch`: use `Inotify.watches().add()` instead
--> examples/linux-inotify.rs:38:27
|
38 | inotify.get_mut().add_watch(".", WatchMask::ALL_EVENTS)?;
| ^^^^^^^^^
|
= note: `-D deprecated` implied by `-D warnings`
```
2023-06-11 18:04:49 +09:00
Taiki Endo
78d512a277
Ignore clippy::type_complexity lint in example
...
```
warning: very complex type used. Consider factoring parts into `type` definitions
--> examples/hyper-server.rs:132:15
|
132 | Handshake(Pin<Box<dyn Future<Output = io::Result<TlsStream<Async<TcpStream>>>> + Send>>),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(clippy::type_complexity)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
```
2022-07-17 21:26:29 +09: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
Taiki Endo
08f027b9b5
Update dev-dependencies
2022-01-09 01:15:27 +09:00
Taiki Endo
c210c4033a
Update dev-dependencies
2021-06-30 23:28:19 +09:00
Taiki Endo
90891b0305
Fix hyper-server example
2021-02-14 20:53:00 +09:00
Taiki Endo
9a0bed4273
Temporarily disable example that using surf
2021-02-14 20:25:19 +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
4ca71638fb
Remove let _ pattern
2020-09-13 13:42:58 +02:00
Stjepan Glavina
c9a8a955b0
Remove let _ pattern
2020-09-13 13:41:18 +02:00
Stjepan Glavina
1a542a8864
Fix compilation errors
2020-08-27 00:02:08 +02:00
Stjepan Glavina
974c4cd218
Add block_on() and SMOL_THREADS
2020-07-27 13:59:47 +02:00
Stjepan Glavina
98e75b9759
Bump to v0.3.1
2020-07-23 13:06:06 +02:00
Stjepan Glavina
66a66d692b
Typo
2020-07-23 13:06:06 +02:00
Stjepan Glavina
7232e53fc8
Fix compilation error
2020-07-23 12:31:41 +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
b3005d9420
Change 0.1 to 0.2 in docs
2020-07-20 11:54:58 +02:00
Stjepan Glavina
a2c24e9604
Fix compilation errors with async-h1
2020-07-20 08:45:56 +02:00
Stjepan Glavina
7a73c22814
Reduce the number of dependencies
2020-07-20 00:55:35 +02:00
Stjepan Glavina
1520334346
Replace writer() with Unblock
2020-07-15 13:56:16 +02:00
Stjepan Glavina
4a18f3cb37
Fix compilation errors on windows
2020-07-15 13:40:48 +02:00
Stjepan Glavina
cb2fcede56
Fix Linux examples
2020-07-15 11:53:36 +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
Writtic
d94e80172c
Erase Ok(()) on fetch
2020-06-27 17:58:36 +09:00
writtic
bcc32e5569
change piper to async-channel on web-crawler
...
- `piper` is deprecated so the crate need to be changed to `async-channel`
2020-06-27 17:57:57 +09:00
Stjepan Glavina
12fe6b5938
Fix a scheduling fairness issue
2020-06-20 16:29:04 +02:00
Yoshua Wuyts
0b7ea6b4c8
set minimum tokio version to 0.2.13
2020-06-02 17:59:01 +02:00
Stjepan Glavina
76aa1ea654
Split with() into read_with() and write_with()
2020-05-21 19:17:33 +02:00
Stjepan Glavina
009db3a5c0
Limit number of concurent tasks
2020-05-20 10:54:43 +02:00
Stjepan Glavina
dbf088fa67
Print errors in HTTP server examples
2020-04-29 20:42:48 +02:00
Stjepan Glavina
3ce838291a
Don't start an extra worker
2020-04-29 11:48:20 +02:00
Stjepan Glavina
238b2a6f77
Explain you must be in examples directory
2020-04-28 13:43:47 +02:00
Stjepan Glavina
2921602606
Merge pull request #47 from stjepang/ace/certs
...
Fix crashes in simple-server
2020-04-28 04:35:12 -07:00
Stjepan Glavina
1772ebe795
Merge pull request #42 from tshepang/master
...
tcp server example: peer address already available, so use it
2020-04-28 04:29:52 -07:00
Stjepan Glavina
4a04d23cc4
Move the certificate into examples directory
2020-04-28 13:17:48 +02:00
Stjepan Glavina
a52bdf354f
Some more comments
2020-04-28 13:09:59 +02:00
Tshepang Lekhonkhobe
6f2be8bc31
tcp server example: peer address already available, so use it
2020-04-28 08:00:41 +02:00
Ace Eldeib
af88dfac6b
fix: server crash on insecure SSL
2020-04-27 16:20:07 -07:00
Stjepan Glavina
abfee72164
Update README.md
2020-04-27 18:57:59 +02:00
Stjepan Glavina
16a14a6981
Update README.md
2020-04-27 18:57:50 +02:00
Stjepan Glavina
2ff9e2cbf3
Less dependencies
2020-04-27 18:57:16 +02:00
creativcoder
cc536c20a7
Add README.md guide to run examples and update build and test yaml
2020-04-27 22:15:17 +05:30