Ivan Petkov
6d8d388dc5
docs: add docs.rs metadata to build with all features ( #1471 )
2019-08-18 11:11:46 -07:00
Ivan Petkov
bc61bd9d3d
ci: ensure all tests are run for each feature ( #1470 )
...
* This includes running docs, examples, and lib tests for each added
feature, to ensure nothing is broken
2019-08-18 10:50:38 -07:00
Jakub Beránek
a9585f0318
tokio-process: change CommandExt to a fully asynchronous Command struct ( #1448 )
...
Refs: #1371
2019-08-18 10:13:37 -07:00
Carl Lerche
88b4ec84d7
chore: prepare 0.2.0-alpha.2 release ( #1465 )
2019-08-17 23:34:25 -07:00
Philip Kannegaard Hayes
9f0daad5ac
sync: fix fuzz_oneshot test by using instrumented loom::sync::Arc
( #1464 )
...
Since `tokio_sync::oneshot` makes a `CausalCell::with_mut()` mutable
access in the `Inner::drop()`, we must use the instrumented
`loom::sync::Arc`.
Uncovered by carllerche/loom#42
2019-08-17 21:30:31 -07:00
Carl Lerche
c187cd75b6
signal: move into tokio-net ( #1463 )
2019-08-17 13:43:55 -07:00
Carl Lerche
a83f5e4ba6
uds: move into tokio-net ( #1462 )
2019-08-16 14:42:05 -07:00
Carl Lerche
4935aae164
udp: remove files left over from moving tokio-udp ( #1461 )
2019-08-16 11:05:50 -07:00
Carl Lerche
ba1829fd26
chore: rename ui-tests -> build-tests ( #1460 )
2019-08-16 09:26:56 -07:00
Carl Lerche
ce7e60e396
udp: move tokio-udp into tokio-net ( #1459 )
2019-08-16 07:26:10 -07:00
Ivan Petkov
d8b23ef852
signal: rename SignalKind methods ( #1457 )
...
This renames the SignalKind constructors to be a bit more readable
instead of using the signal names themselves
2019-08-15 21:09:09 -07:00
Carl Lerche
4788d3a9e3
tcp: move tokio-tcp into tokio-net ( #1456 )
2019-08-15 20:37:25 -07:00
Carl Lerche
f1f61a3b15
net: reorganize crate in anticipation of #1264 ( #1453 )
...
Space is made to add `tcp`, `udp`, `uds`, ... modules.
2019-08-15 15:04:21 -07:00
Jakub Beránek
d0a8e5d6f2
tokio-fs: rewrite std echo example using async/await ( #1442 )
...
This PR fixes the echo example in tokio-fs.
Refs: #1255
2019-08-15 13:10:17 -07:00
Carl Lerche
3b27dc31d2
threadpool: move threadpool into tokio-executor ( #1452 )
...
The threadpool is behind a feature flag.
Refs: #1264
2019-08-15 13:09:02 -07:00
Douman
37131b2114
runtime: refactor thread-local setters ( #1449 )
2019-08-15 13:00:57 -07:00
Carl Lerche
8538c25170
reactor: rename tokio-reactor -> tokio-net ( #1450 )
...
* reactor: rename tokio-reactor -> tokio-net
This is in preparation for #1264
2019-08-15 11:04:58 -07:00
Jakub Beránek
7b6438a172
tokio: rewrite print_each_packet example using async/await ( #1446 )
...
This PR fixes the print each packet example in tokio.
Refs: #1201
2019-08-15 10:42:34 -07:00
Carl Lerche
9de7083be8
executor: move current-thread into crate ( #1447 )
...
The `CurrentThread` executor is exposed using a feature flag.
Refs: #1264
2019-08-15 09:52:25 -07:00
John Doneth
8d55f98f6f
udp: update tokio_udp::UdpFramed
to std::future ( #1370 )
2019-08-14 11:18:21 -07:00
Taiki Endo
999a600494
io: add async BufReader/BufWriter ( #1438 )
2019-08-14 10:24:07 -07:00
Ilya Lakhin
fb9809c068
executor, threadpool: forward port fix from #1155 ( #1433 )
...
Add executor::exit, allowing other executors inside threadpool::blocking.
2019-08-13 21:12:49 -07:00
Douman
517162792f
macros: upgrade syn/quote ( #1432 )
2019-08-13 21:11:26 -07:00
Geoff Shannon
fe90d61446
test: add a block_on function to tokio-test ( #1431 )
2019-08-13 21:10:26 -07:00
Ivan Petkov
338b37884a
signal: Add SignalKind for registering signals more easily ( #1430 )
...
This avoids having consumers import libc for common signals, and it
improves discoverability since users need not be aware that libc
contains all supported constants.
2019-08-13 21:07:22 -07:00
Ivan Petkov
513326e01d
signal: remove driver task for Windows event implementation ( #1429 )
...
Windows guarantees handler routines are always invoked in a new thread
(https://docs.microsoft.com/en-us/windows/console/handlerroutine ), so we
don't need to use the handler-wake-another-driver technique used in the
Unix implementation
By broadcasting the event notifications from the handler, we no longer
need the Driver task to be spawned, which fixes the starvation issue if
the executor which runs the Driver task goes away
Also changed the behavior so that the default event handler runs if
all listeners for CTRL_{C, BREAK} events go away.
2019-08-13 21:01:06 -07:00
Ivan Petkov
73a91ad7b3
signal: delete blocking Read/Write impls on ChildStd{in, out, err} ( #1428 )
2019-08-13 20:53:02 -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
fff39c03b1
ci: deny warnings in cirrus ( #1425 )
2019-08-11 01:41:51 +09:00
Tomasz Miąsko
756606a58b
uds: implement split and split_mut for UnixStream ( #1395 )
...
This mirrors split API available in TcpStream.
2019-08-09 12:50:18 -07:00
Ran Benita
e3b4c99a33
codec: a few suggestions ( #1418 )
...
How the buffer is managed is often critical for performance. Not
taking care of it will be catastrophic for performance beyond the
initial buffer size with the current implementation (a loop of
`reserve(1)`).
2019-08-09 12:20:31 -07:00
Taiki Endo
42fa0c28d3
timer: use std::sync::atomic::AtomicU64 instead of own AtomicU64 ( #1421 )
2019-08-10 03:42:03 +09:00
Taiki Endo
f7b41c9dcc
macros: improve error messages ( #1420 )
2019-08-09 10:28:22 -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
Douman
18833a8e67
macros: Error on function with arguments ( #1419 )
2019-08-09 11:04:41 -04:00
tmiasko
eba8bf2b4b
io: implement AsyncWrite for Vec<u8> ( #1409 )
2019-08-08 20:55:27 -07:00
David Kellum
790d649dc5
update (dev dep) env_logger to latest 0.6 ( #1390 )
2019-08-08 20:37:32 -07:00
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