Jon Gjengset
5efe31f2ed
Prepare for release of 0.2.0-alpha.6 ( #1617 )
...
Note that `tokio-timer` and `tokio-tls` become 0.3.0-alpha.6 (not 0.2.0)
2019-09-30 18:35:52 -04:00
Jon Gjengset
5fd5329497
Create BufStream from a BufReader + BufWriter ( #1609 )
...
This is handy if developers want to construct the inner buffers with a
particular capacity, and still end up with a `BufStream` at the end.
2019-09-30 14:22:59 -04:00
Taiki Endo
c4567f741a
io: add get_*/into_inner methods to BufStream ( #1598 )
2019-09-25 09:17:43 -04:00
Taiki Endo
c81447fdcc
io: remove unsafe pin-projections and remove manual Unpin implementations ( #1588 )
...
* Removes most pin-projection related unsafe code.
* Removes manual Unpin implementations.
As references always implement Unpin, there is no need to implement
Unpin manually.
* Adds tests to check that Unpin requirement does not change accidentally
because changing Unpin requirements will be breaking changes.
2019-09-25 01:17:06 +09:00
Taiki Endo
376d63867a
chore: update pin-project to 0.4.0-beta.1 ( #1586 )
2019-09-23 01:52:14 +09:00
Carl Lerche
80ba2a4ff6
Release 0.2.0 alpha.5 ( #1576 )
2019-09-19 13:39:35 -07:00
Jon Gjengset
9d5af20bcf
Enable buffering both reads and writes ( #1558 )
...
`BufWriter` and `BufReader` did not previously forward the "opposite" trait (`AsyncRead` for `BufWriter` and `AsyncWrite` for `BufReader`). This meant that there was no way to have both directions buffered at once. This patch fixes that, and introduces a convenience type + constructor for this double-wrapped construct.
2019-09-19 14:17:15 -04:00
Taiki Endo
d1f60ac4c6
chore: deny warnings for doc tests ( #1539 )
2019-09-19 15:50:12 +09:00
Geoff Shannon
c0a64d67ca
chore: fix docs links ( #1523 )
2019-09-13 09:46:19 -07:00
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
Sean McArthur
15dc0563b7
prepare v0.2.0-alpha.4 ( #1509 )
2019-08-29 12:59:10 -07:00
Carl Lerche
a59e096c47
prepare v0.2.0-alpha.3 release ( #1505 )
2019-08-28 15:04:42 -07:00
Taiki Endo
24fb33e012
io: add AsyncReadExt::{chain, take} ( #1484 )
2019-08-20 20:09:07 -07:00
Ivan Petkov
68d5fcb8d1
docs: fix all rustdoc warnings ( #1474 )
2019-08-18 14:38:54 -07:00
Carl Lerche
88b4ec84d7
chore: prepare 0.2.0-alpha.2 release ( #1465 )
2019-08-17 23:34:25 -07:00
Taiki Endo
999a600494
io: add async BufReader/BufWriter ( #1438 )
2019-08-14 10:24:07 -07:00
Taiki Endo
6a125082e4
chore: apply unreachable_pub and missing_debug_implementations to all crates ( #1424 )
2019-08-11 04:28:52 +09:00
Taiki Endo
d9f9c5658f
chore: bump to newer nightly ( #1426 )
2019-08-11 02:01:20 +09: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
Steven Fackler
63377e2110
Add AsyncWriteExt::shutdown ( #1382 )
2019-08-03 00:51:24 -04: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
Taiki Endo
fe021e6c00
ci: enable clippy lints ( #1335 )
2019-07-26 03:47:14 +09:00
Sean McArthur
7f7f74985e
io: Minor adjustments to tokio-test IO ( #1306 )
...
This also re-exports `bytes::{Buf, BufMut}` from `tokio-io`.
2019-07-15 14:53:16 -07:00
Taiki Endo
5774a9cd64
io: add AsyncBufRead trait
2019-07-15 11:52:13 -07:00
Gurwinder Singh
83273b8b50
chore: use ready macro from futures-core ( #1300 )
2019-07-15 10:43:54 -07:00
Thomas Lacroix
516251052d
Add missing links in README.md ( #1233 )
...
Fixes : #1229
2019-07-03 22:59:10 -07:00
Taiki Endo
ceed29586b
io: fix documents ( #1231 )
2019-07-01 20:44:12 -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
Taiki Endo
599955f716
Replace try! macro with ? operator ( #1024 )
2019-04-01 13:45:59 -07:00
Carl Lerche
e28856cffe
Bump Tokio to 0.1.16. ( #941 )
...
Also bumps:
* tokio-current-thread (0.1.5)
* tokio-fs (0.1.6)
* tokio-io (0.1.12)
* tokio-reactor (0.1.9)
* tokio-threadpool (0.1.12)
2019-03-01 21:04:43 -08:00
Toralf Wittner
fd22090df8
tokio-io: Add unsplit. ( #807 )
...
Provide a way to restore an I/O object from its `ReadHalf` and
`WriteHalf`.
Closes #803
Co-Authored-By: twittner <[email protected] >
2019-02-22 12:23:36 -08:00
Carl Lerche
80162306e7
chore: apply rustfmt to all crates ( #917 )
2019-02-21 11:56:15 -08:00
Carl Lerche
961aae41c4
Bump version to 0.1.14. ( #836 )
...
Also bumps:
* tokio-async-await (0.1.5)
* tokio-executor (0.1.6)
* tokio-fs (0.1.5)
* tokio-io (0.1.11)
* tokio-reactor (0.1.8)
* tokio-tcp (0.1.3)
* tokio-threadpool (0.1.10)
* tokio-tls (0.2.1)
* tokio-uds (0.2.5)
...and updates LICENSE files to 2019.
2019-01-06 23:25:55 -08:00
Roman
db69275202
docs: fix warnings for nightly docs ( #792 )
2018-12-17 15:20:46 -05:00
Christian Bourjau
36f1a19ac8
Minor change in documentation of Decoder::decode ( #797 )
...
`None` -> `Ok(None)`
2018-12-13 11:14:38 -08:00
Carl Lerche
f929576f0e
Bump version to 0.1.12 ( #718 )
...
Also bumps the following sub-crates:
* tokio-fs (0.1.4)
* tokio-io (0.1.10)
* tokio-signal (0.2.6)
* tokio-threadpool (0.1.8)
* tokio-uds (0.2.3)
2018-10-23 22:00:49 -07:00
Nikolay Kim
a2f457fa48
io: expose underlying codec ( #686 )
2018-10-06 19:23:05 -04:00
Sven Marnach
678f6382b8
io: implement prepare_uninitialized_buffer for Take and Chain ( #678 )
2018-10-04 11:03:43 -07:00
Sven Marnach
886511c0a6
io: fix minor documentation errors for Async{Read,Write} ( #677 )
2018-10-01 19:34:24 -04:00
Carl Lerche
cab9a44e01
Bump version to v0.1.9 ( #666 )
...
This also includes bumps to subcrates.
* tokio-async-await (0.1.4)
* tokio-codec (0.1.1)
* tokio-current-thread (0.1.2)
* tokio-executor (0.1.5)
* tokio-io (0.1.9)
* tokio-reactor (0.1.6)
* tokio-tcp (0.1.2)
* tokio-threadpool (0.1.7)
* tokio-timer (0.2.7)
2018-09-26 22:32:51 -07:00
Toby Lawrence
1119d572ee
io: ensure ReadHalf/WriteHalf do not return WouldBlock directly ( #655 )
...
* io: ensure ReadHalf/WriteHalf do not return WouldBlock directly
These facades were passing back WouldBlock when the internal BiLock
couldn't be acquired, which does not fit the intended behavior.
Signed-off-by: Toby Lawrence <[email protected] >
* io: pull from the local crate, not crates.io
2018-09-21 14:59:07 -04:00
ksqsf
a5ac6c8b72
Fix undesired multi-line error message ( #605 )
2018-08-31 09:53:41 -07:00
Zachary Stewart
322a94f72f
Update documentation for AsyncRead and AsyncWrite ( #596 )
...
tokio-io: update documentation for AsyncRead and AsyncWrite
2018-08-31 09:00:32 -04: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