Lucio Franco
50e5d401df
chore: prepare for v0.2.0-alpha.1 release ( #1410 )
tokio-0.2.0-alpha.1
2019-08-08 12:48:53 -07:00
Carl Lerche
2e69f2a7fd
sync: track upstream loom changes ( #1407 )
2019-08-07 23:24:22 -07:00
Carl Lerche
962521f449
chore: enable full CI run ( #1399 )
...
* update all tests
* fix doc examples
* misc API tweaks
2019-08-07 20:02:13 -07:00
Carl Lerche
831be9c08e
executor: remove unused dependency ( #1406 )
2019-08-07 19:55:42 -07:00
Carl Lerche
23c380a78f
sync: track loom changes ( #1405 )
2019-08-07 15:38:34 -07:00
Lucio Franco
0a05332648
Remove git dep and add macro examples ( #1404 )
...
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2019-08-07 15:02:38 -07:00
Lucio Franco
7268b0bb3a
Migrate threadpool to futures-util ( #1403 )
...
* Migrate threadpool to futures-util
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
* fmt
2019-08-07 16:26:44 -04:00
Lucio Franco
6412389bba
executor: update park implementation ( #1402 )
...
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2019-08-07 13:01:13 -07:00
tmiasko
53a94c025d
io: implement AsyncBufRead for &[u8] and Cursor ( #1397 )
...
* `impl AsyncRead for &[u8]`
* `impl AsyncBufRead for &[u8]`
* `impl<T: AsRef<[u8]> + Unpin> AsyncRead for Cursor<T>`
* `impl<T: AsRef<[u8]> + Unpin> AsyncBufRead for Cursor<T>`
2019-08-07 12:57:37 -07:00
Gurwinder Singh
7174c63bf9
codec: move length delimited codec to tokio-codec ( #1401 )
2019-08-07 12:10:05 -07:00
Ivan Petkov
cb2336ff3d
process: Misc polish ( #1400 )
...
* Denied all warnings in tests, and denied rust_2018_idioms violations
* Bumped the crate version and set publish = false
* Pruned dependencies:
- Only pull in tokio-sync on windows where it is used
- Removed unused dev-dependencies
* Switch to Async{Read, Write} traits from tokio-io rather than
futures-io
* Use #[tokio::test] where possible
* Removed deprecated items
* Fix all doc examples
2019-08-07 10:38:45 -07:00
Carl Lerche
47e2ff48d9
tokio: fix API doc examples ( #1396 )
2019-08-06 14:03:49 -07:00
Carl Lerche
2f43b0a023
sync: polish and update API doc examples ( #1398 )
...
- Remove `poll_*` fns from some of the sync types.
- Move `AtomicWaker` and `Lock` to the root of the `sync` crate.
2019-08-06 13:54:56 -07:00
Carl Lerche
05d00aebb7
uds: remove poll_* fns in favor of async fns ( #1394 )
2019-08-05 15:05:02 -07:00
Carl Lerche
62733a6594
udp: remove poll_* fns in favor of async fns ( #1393 )
...
This removes the need for manual futures.
2019-08-05 14:18:18 -07:00
Carl Lerche
6d8cc4e475
tcp: update API documentation ( #1392 )
2019-08-05 11:50:55 -07:00
Carl Lerche
6cbe3d4f82
fs: use async fn instead of custom futures ( #1381 )
...
Also update all the doc examples.
2019-08-04 11:24:30 -07:00
Carl Lerche
337646b97f
tokio: re-export future/stream utils ( #1387 )
2019-08-03 21:08:29 -07:00
Taiki Endo
0bb015588a
codec: add AsyncBufRead/BufRead implementations ( #1385 )
...
* AsyncBufRead for FramedWrite2<T>
* BufRead for FramedWrite2<T>
* AsyncBufRead for Fuse<T, U>
* BufRead for Fuse<T, U>
2019-08-03 20:15:50 -07:00
Steven Fackler
63377e2110
Add AsyncWriteExt::shutdown ( #1382 )
2019-08-03 00:51:24 -04:00
Carl Lerche
878503f965
docs: update API documentation for some crates ( #1380 )
...
Updates API documentation for
- tokio-buf
- tokio-codec
- tokio-current-thread
- tokio-executor
2019-08-02 14:35:32 -07:00
Carl Lerche
2c01b3e0e0
io: remove util
from default features ( #1379 )
...
Sub-crates should require opting into features.
2019-08-02 12:59:24 -07:00
Carl Lerche
ee9105d166
tokio: add async io traits to prelude ( #1378 )
2019-08-02 12:50:40 -07:00
Lucio Franco
5a4f849bba
tokio: update tinyhttp example to async/await ( #1372 )
2019-08-02 12:24:15 -07:00
Lucio Franco
ff41108834
io: move io helpers back into tokio-io
( #1377 )
...
Utilities are made optional with a feature flag.
2019-08-02 12:23:44 -07:00
Lucio Franco
6b202722ea
io: Add AsyncWriteExt::flush
( #1376 )
...
* io: Add `AsyncWriteExt::flush`
* fmt
* fix clippy
2019-08-02 13:53:49 -04:00
Lucio Franco
144d980e5c
tokio: update connect to async/await ( #1375 )
2019-08-02 10:03:06 -07:00
Lucio Franco
81d789b88f
tokio: Update proxy to async/await ( #1373 )
2019-08-01 20:03:34 -07:00
Lucio Franco
634c19582f
chore: add rust-toolchain file to track nightly version ( #1374 )
2019-08-01 20:00:55 -07:00
Ivan Petkov
ff922bbe6d
signal: Change constructors to return a result instead of lazy future ( #1340 )
2019-07-30 18:23:26 -07:00
Gurwinder Singh
bf38631d6a
chore: Fix spelling mistake ( #1359 )
2019-07-30 10:53:11 -07:00
Taiki Endo
6dda866191
tokio: re-enable StreamExt ( #1362 )
2019-07-30 09:55:34 -07:00
Taiki Endo
03e450deb1
sync: switch branch of loom dev-dependency to master ( #1367 )
...
* sync: switch branch of loom dev-dependency to master
* replace loom::fuzz with loom::model
2019-07-30 10:11:46 -04:00
andy finch
fbf90e6356
Update process to use std::future ( #1343 )
2019-07-29 18:36:11 -07:00
Shell Chen
74168ae82f
tcp: add async fn TcpStream::peek
( #1360 )
...
* tcp: add `async fn TcpStream::peek`
* tcp: apply rustfmt on tests
2019-07-26 10:55:02 -04:00
John Doneth
d038009e7d
Update chat example to async/await ( #1349 )
2019-07-25 19:44:23 -04:00
John Doneth
132e9f1da5
Update examples to return Result
( #1305 )
...
* update echo-udp
* update echo
* update hello_world
* update udp-client
* rustfmt
* remove send & sync
* rebase & change new updated examples
2019-07-25 16:47:31 -04:00
Taiki Endo
fe021e6c00
ci: enable clippy lints ( #1335 )
2019-07-26 03:47:14 +09:00
Lucio Franco
f311ac3d4f
buf: Inital pass at updating BufStream ( #1355 )
2019-07-25 14:21:48 -04:00
Shell Chen
298be80249
tokio: include async-trait feature for uds ( #1352 )
2019-07-25 08:07:33 -07:00
John Doneth
79b017c773
Export LinesCodecError
( #1350 )
2019-07-24 15:26:41 -04:00
Taiki Endo
ca0e5cc670
add TryFrom/From implementations ( #1347 )
...
* TryFrom<net::TcpListener> for TcpListener
* TryFrom<net::TcpStream> for TcpStream
* TryFrom<net::UdpSocket> for UdpSocket
* TryFrom<net::UnixDatagram> for UnixDatagram
* TryFrom<net::UnixListener> for UnixListener
* TryFrom<net::UnixStream> for UnixStream
* TryFrom<UnixDatagram> for mio_uds::UnixDatagram
* TryFrom<File> for io::File
* From<io::File> for File
2019-07-24 09:26:12 -07:00
Douman
59bc364a0e
macros: detect double test attribute ( #1336 )
2019-07-22 09:28:07 -07:00
Taiki Endo
e88d10a3cb
chore: bump to newer nightly ( #1338 )
2019-07-22 06:04:02 +09:00
Ivan Petkov
a3b8d82711
Merge tokio-process into tokio
...
Original repo can be found at https://github.com/alexcrichton/tokio-process/
2019-07-21 11:08:16 -07:00
Ivan Petkov
d9688bc094
signal: change unix::Signal to return () instead of signum ( #1330 )
...
* This simplifies the API surface by returning () instead of the signal
number that was used during registration. This also more closely mirrors
the cross-platform `CtrlC` event stream API
* This is a **breaking change**
2019-07-20 15:12:53 -07:00
Ivan Petkov
320a5fdca7
signal: replace windows::Event
with windows::CtrlBreak
( #1331 )
...
* Add a new `windows::CtrlBreak` struct which wil represent a stream of
CTRL_BREAK_EVENT signals on Windows systems
* The `windows::Event` type is no longer publicly accessible and is
replaced by using `CtrlC` or `windows::CtrlBreak`.
[breaking-change]
2019-07-20 10:50:27 -07:00
Taiki Endo
9af07ce208
chore: remove redundant field names in struct literals ( #1334 )
2019-07-20 10:43:19 -07:00
Taiki Endo
1b2d997863
chore: use ptr::{null, null_mut} instead of 0 as *{const, mut} ( #1333 )
2019-07-20 10:41:02 -07:00
Taiki Endo
7a52ddcd09
chore: remove unnecessary conversion ( #1332 )
2019-07-20 12:10:42 -04:00