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
3b8ee2d991
chore: update futures-preview to 0.3.0-alpha.19 ( #1610 )
2019-09-30 13:32:37 -04:00
Taiki Endo
159abb375f
chore: update pin-project to 0.4 ( #1603 )
2019-09-27 04:51:28 +09: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
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
Ivan Petkov
68d5fcb8d1
docs: fix all rustdoc warnings ( #1474 )
2019-08-18 14:38:54 -07:00
Ivan Petkov
6d8d388dc5
docs: add docs.rs metadata to build with all features ( #1471 )
2019-08-18 11:11:46 -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
930cce8677
chore: update futures-preview to 0.3.0-alpha.18 ( #1427 )
2019-08-10 14:09:28 -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
Carl Lerche
6d8cc4e475
tcp: update API documentation ( #1392 )
2019-08-05 11:50:55 -07:00
Steven Fackler
63377e2110
Add AsyncWriteExt::shutdown ( #1382 )
2019-08-03 00:51:24 -04: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
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
Carl Lerche
949adbb887
chore: remember to remove path deps on release ( #1057 )
2019-04-24 10:42:39 -07:00
Taiki Endo
599955f716
Replace try! macro with ? operator ( #1024 )
2019-04-01 13:45:59 -07:00
Carl Lerche
cdde2e7a27
chore: repo maintenance + no path dependencies ( #991 )
...
- Move `tokio` into its own directory.
- Remove `path` dependencies.
- Run tests with once with crates.io dep and once with patched dep.
2019-03-19 14:58: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