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
Lucio Franco
50e5d401df
chore: prepare for v0.2.0-alpha.1 release ( #1410 )
2019-08-08 12:48:53 -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
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
Carl Lerche
6d8cc4e475
tcp: update API documentation ( #1392 )
2019-08-05 11:50:55 -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
Taiki Endo
fe021e6c00
ci: enable clippy lints ( #1335 )
2019-07-26 03:47:14 +09: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
Taiki Endo
9af07ce208
chore: remove redundant field names in struct literals ( #1334 )
2019-07-20 10:43:19 -07:00
Diggory Blake
0d99ddd4f4
tcp: implement "split_mut" for TcpStream ( #1289 )
2019-07-16 10:28:00 -07:00
Jon Gjengset
e6cf976662
tokio: include async-traits
feature ( #1314 )
...
The `tokio` facade crate will depend on the `async-traits` feature flag in
sub crates.
2019-07-15 14:02:14 -07:00
Taiki Endo
b14e189e44
add #[must_use] to more futures and streams ( #1309 )
2019-07-15 13:28:56 -07:00
Gurwinder Singh
83273b8b50
chore: use ready macro from futures-core
( #1300 )
2019-07-15 10:43:54 -07:00
Taiki Endo
7b86acb71d
chore: Update futures-preview to 0.3.0-alpha.17 ( #1267 )
2019-07-04 14:34:57 -07:00
Carl Lerche
3e898f58a5
tcp: add ascyc fn TcpListener::accept
( #1242 )
...
Refs: #1209
2019-07-03 09:49:56 -07:00
Yin Guanhao
7380dd2482
TcpSocket specialized split ( #1217 )
2019-06-28 23:36:49 -07:00
Carl Lerche
ed4d4a5353
chore: format code and enable rustfmt CI task ( #1212 )
2019-06-27 00:05:01 -07:00
Carl Lerche
8404f796ac
test: get cargo test --tests
working ( #1205 )
...
Broken tests are disabled
2019-06-26 14:40:52 -07:00
Denis
dd126c2333
Implement TryFrom
to transform various I/O primitives into their mio counterparts ( #1158 )
...
* `TryFrom<TcpListener> for mio::net::TcpListener`
* `TryFrom<TcpStream> for mio::net::TcpStream`
* `TryFrom<UdpSocket> for mio::net::UdpSocket`
* `TryFrom<UnixListener> for mio_uds::UnixListener`
* `TryFrom<UnixStream> for mio_uds::UnixStream`
2019-06-26 08:51:38 -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
1b498e8aa2
Fix TCP poll_hup test ( #1106 )
...
This updates tests to track a fix applied in Mio. Previously, Mio
incorrectly fired HUP events. This was due to Mio mapping `RDHUP` to
HUP. The test is updated to correctly generate a HUP event.
Additionally, HUP events will be removed from all platforms except for
Linux. This is caused by the inability to reliably map kqueue events to
the epoll HUP behavior.
2019-05-24 14:08:07 -07:00
Carl Lerche
cb4aea394e
Update Tokio to Rust 2018 ( #1082 )
2019-05-14 10:27:36 -07:00
Carl Lerche
df702130d6
tcp: fix some tests that spuriously fail ( #1060 )
...
This does not remove all cases of using a fixed port in doc tests, but
removing some should reduce the likelihood of spurious failures.
2019-04-25 12:01:39 -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
Blake Smith
9be5f3f9ff
Fix TcpStream::try_clone error message ( #946 )
2019-03-04 14:17:08 -08:00
Carl Lerche
80162306e7
chore: apply rustfmt to all crates ( #917 )
2019-02-21 11:56:15 -08:00
Carl Lerche
25e835c5b7
tcp: specify version for tokio dev dependency
...
This is required for publishing to crates.io
2019-01-06 23:31:24 -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
Stjepan Glavina
a687922746
tcp: deprecate TcpStream::try_clone()
( #824 )
2019-01-05 10:55:58 -05:00
Matt Gathu
1cd0ebfc5e
tcp: add usage examples to TcpListener and TcpStream ( #775 )
...
Refs: https://github.com/rust-lang-nursery/wg-net/issues/54
2018-11-28 13:05:35 -05: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
Ben Boeckel
82c5baa09b
Spelling fixes ( #571 )
...
* docs: fix spelling and whitespace errors
2018-08-25 15:26:41 -04:00
Mateusz Mikuła
31f71dedee
Routine dependencies update ( #533 )
...
* Update dependencies
* Replace deprecated tempdir with tempfile
2018-08-10 12:37:45 -07:00
Carl Lerche
d91c775f36
Remove dead futures2 code. ( #538 )
...
The futures 0.2 crate is not intended for widespread usage. Also, the
futures team is exploring the compat shim route.
If futures 0.3 support is added to Tokio 0.1, then a different
integration route will be explored, making the current code unhelpful.
2018-08-09 21:56:53 -07:00
Andrew Cann
fdb2f61357
Udp socket readiness methods ( #522 )
2018-08-07 19:41:27 -07:00
Carl Lerche
e964c4136c
Bump subcrate versions ( #524 )
...
* tokio-current-thread 0.1.1
* tokio-executor 0.1.3
* tokio-fs 0.1.3
* tokio-reactor 0.1.3
* tokio-tcp 0.1.1
* tokio-timer 0.2.5
2018-08-06 20:36:50 -07:00
João Oliveira
54b7c1b10d
tokio-tcp: add tokio::net::TcpStream::try_clone ( #448 )
2018-07-11 11:54:08 -07:00
Carl Lerche
e281e4f4cb
Remove fuchsia references as it is not supported. ( #355 )
2018-05-14 12:00:19 -07:00
main()
35f3351c97
Document Handle::default() behavior ( #359 )
2018-05-14 11:11:28 -07:00
Julian Tescher
06b2c40222
Fix typos ( #348 )
2018-05-08 11:44:17 -07:00
Carl Lerche
7a2b5db15c
Remove futures2
feature from Cargo.toml files ( #334 )
...
Currently, the state of the futures2 integration is pretty broken. This
patch removes the feature flag, preventing users from trying to use it.
In the future, it can be brought back when the implementation is fixed.
2018-05-02 10:48:58 -07:00
Kam Y. Tse
3ba5595233
Fix typo ( #275 )
2018-04-02 13:11:06 -07:00
Sam Rijs
415a786049
Fix unstable-futures feature flag propagation ( #261 )
2018-03-27 15:46:02 -07:00
Carl Lerche
9cffda59c9
Bump version to v0.1.4 ( #252 )
...
This also bumps:
* tokio-executor: v0.1.1
* tokio-reactor: v0.1.1
* tokio-threadpool: v0.1.1
2018-03-23 10:34:42 -07:00
Michal 'vorner' Vaner
5d87a9cee1
Docs: warn about errors from TcpListener::incoming ( #247 )
2018-03-22 10:01:05 -07:00