Carl Lerche
431d4857e8
io: add Send / Sync impls for ReadHalf / WriteHalf ( #1525 )
2019-08-31 12:18:55 -07:00
Carl Lerche
2f91c85ad8
io: bring back split utility ( #1521 )
...
Bring back `split` utility as a free fn instead of a method on
`AsyncRead`. This utility wraps the `stream` in an `Arc` and uses mutual
exclusion to ensure correct access.
Additionally, the specialized `split_mut` fn on TcpStream and UdsStream
is promoted to `split`.
2019-08-30 20:46:07 -07:00
Gurwinder Singh
13930eff2a
chore: two async_await feature remained ( #1486 )
2019-08-21 18:53:42 +09:00
Taiki Endo
24fb33e012
io: add AsyncReadExt::{chain, take} ( #1484 )
2019-08-20 20:09:07 -07:00
Taiki Endo
a791f4a758
chore: bump to newer nightly ( #1485 )
2019-08-20 20:07:16 -07:00
Taiki Endo
73102760cf
chore: change default lint level to warning and deny warnings in CI ( #1416 )
2019-08-10 00:07:57 +09:00
tmiasko
eba8bf2b4b
io: implement AsyncWrite for Vec<u8> ( #1409 )
2019-08-08 20:55:27 -07:00
Lucio Franco
50e5d401df
chore: prepare for v0.2.0-alpha.1 release ( #1410 )
2019-08-08 12:48:53 -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
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
Carl Lerche
ed4d4a5353
chore: format code and enable rustfmt CI task ( #1212 )
2019-06-27 00:05:01 -07:00
Carl Lerche
06c473e628
Update Tokio to use std::future. ( #1120 )
...
A first pass at updating Tokio to use `std::future`.
Implementations of `Future` from the futures crate are updated to implement
`Future` from std. Implementations of `Stream` are moved to a feature flag.
This commits disables a number of crates that have not yet been updated.
2019-06-24 12:34:30 -07:00
Carl Lerche
cb4aea394e
Update Tokio to Rust 2018 ( #1082 )
2019-05-14 10:27:36 -07:00
Carl Lerche
80162306e7
chore: apply rustfmt to all crates ( #917 )
2019-02-21 11:56:15 -08:00
Carl Lerche
dc4a29359f
io: allow deprecated code in length_delimited test ( #759 )
...
This file is testing deprecated code, so it should be permitted to
access deprecated code.
2018-11-19 14:11:46 -08:00
Eliza Weisman
bc91bc5022
Fix non-terminating loop in tokio_io::length_delimited::FramedWrite ( #576 )
...
* tokio-io: fix non-terminating loop in length_delimited::FramedWrite (#497 )
2018-08-31 06:31:43 -04:00
Bryan Burgers
f723d10087
Create tokio-codec ( #360 )
...
Create a new tokio-codec crate with many of the contents of
`tokio_io::codec`.
2018-06-04 20:36:06 -07:00
Roman
d1d4fe4d07
Stop using deprecated bytes APIs in tests ( #324 ) ( #331 )
2018-04-30 10:02:48 -07:00
Ben Boeckel
40cbd0f296
length_delimited: add a native_endian builder method ( #144 )
...
This method is useful when reading from a operating system service.
2018-02-26 10:38:56 -08:00
Carl Lerche
b9db119b45
Move tokio-io into the git repository. ( #96 )
...
The crates remain separate, but are now developed in the same git
repository using cargo workspaces.
This facilitates making coordinated changes.
2018-01-31 21:06:42 -08:00