Taiki Endo
2aa8751261
ci: use latest stable compiler on macOS ci ( #2643 )
2020-07-05 18:48:47 +02:00
Taiki Endo
d2f81b506a
sync: allow unsized types in Mutex and RwLock ( #2615 )
2020-06-13 03:32:51 +09:00
Taiki Endo
6b6e76080a
chore: reduce pin related unsafe code ( #2613 )
2020-06-12 19:49:39 +09:00
Taiki Endo
68b4ca9f55
ci: pin compiler version in miri tests ( #2614 )
2020-06-12 18:37:06 +09:00
Taiki Endo
1769f65d37
io: fix unsound pin projection in read_buf and write_buf ( #2612 )
2020-06-12 14:28:23 +09:00
Taiki Endo
1636910f0a
net: impl ToSocketAddrs for &[SocketAddr] ( #2604 )
2020-06-11 11:06:15 +02:00
Taiki Endo
d22301967b
chore: fix macOS ci on github actions ( #2602 )
2020-06-11 04:51:24 +09:00
Taiki Endo
4010335c84
chore: fix ci failure on master ( #2593 )
...
* Fix clippy warnings
* Pin rustc version to 1.43.1 in macOS
Refs: https://github.com/rust-lang/rust/issues/73030
2020-06-07 20:38:02 +09:00
Taiki Endo
7e88b56be5
test: remove unnecessary unsafe code ( #2424 )
2020-04-22 02:34:55 +09:00
Taiki Endo
770d0ec452
ci: fix FreeBSD CI ( #2403 )
2020-04-13 14:41:42 +02:00
Taiki Endo
7cd63fb946
ci: use -Z avoid-dev-deps in features check instead of --no-dev-deps ( #1812 )
2019-11-22 14:13:18 -08:00
Taiki Endo
d4fec2c5d6
chore: enable feature flag check on windows ( #1798 )
2019-11-20 07:05:50 -08:00
Taiki Endo
66cbed3ce3
tls: enable test on CI ( #1779 )
2019-11-16 22:24:58 -08:00
Taiki Endo
10dc659450
io: expose std{in, out, err} under io feature ( #1759 )
...
This exposes `std{in, out, err}` under io feature by moving
`fs::blocking` module into `io::blocking`.
As `fs` feature depends on `io-trait` feature, `fs` implementations can
always access `io` module.
2019-11-16 22:03:39 -08:00
Taiki Endo
320c84a433
chore: migrate from pin-project to pin-project-lite ( #1778 )
2019-11-16 09:14:40 -08:00
Taiki Endo
1474794055
runtime: allow non-unit type output in {Runtime, Spawner}::spawn ( #1756 )
2019-11-15 22:16:21 -08:00
Taiki Endo
92eb635669
net: add more impls for ToSocketAddrs ( #1760 )
2019-11-15 22:12:57 -08:00
Taiki Endo
c15e01a09b
chore: remove rust-toolchain and add minimum supported version check ( #1748 )
...
* remove rust-toolchain
* add minimum supported version check
2019-11-08 13:26:08 +09:00
Taiki Endo
64f2bf0072
chore: update CI config to test on stable ( #1747 )
2019-11-08 00:32:04 +09:00
Taiki Endo
6f8b986bdb
chore: update futures to 0.3.0 ( #1741 )
2019-11-07 05:09:10 +09:00
Taiki Endo
3948e16292
ci: install minimal profile by default ( #1729 )
2019-11-03 12:08:07 -08:00
Taiki Endo
02f7264008
chore: check each feature works properly ( #1695 )
...
It is hard to maintain features list manually, so use cargo-hack's
`--each-feature` flag. And cargo-hack provides a workaround for an issue
that dev-dependencies leaking into normal build (`--no-dev-deps` flag),
so removed own ci tool.
Also, compared to running tests on all features, there is not much
advantage in running tests on each feature, so only the default features
and all features are tested.
If the behavior changes depending on the feature, we need to test it as
another job in CI.
2019-10-31 21:09:32 -07:00
Taiki Endo
4c97e9dc28
fs: remove unnecessary trait and lifetime bounds ( #1655 )
2019-10-15 19:02:34 +09:00
Taiki Endo
42a5cb1508
timer: test arm on targets with target_has_atomic less than 64 ( #1634 )
2019-10-07 09:19:44 -07:00
Taiki Endo
2b4b0619d7
chore: update Cirrus CI config to test on beta ( #1636 )
2019-10-07 09:18:38 -07:00
Taiki Endo
55caddb9ce
chore: do not trigger CI on std-future branch ( #1635 )
2019-10-07 09:17:27 -07:00
Taiki Endo
f48980ae52
chore: update rust-toolchain to use beta ( #1619 )
2019-10-01 10:13:38 -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
d50d050fae
net: fix build-tests for uds ( #1589 )
2019-09-24 02:47:39 +09:00
Taiki Endo
3a55aba251
macros: add build tests for #[tokio::main] and #[tokio::test] ( #1591 )
2019-09-23 04:09:30 +09:00
Taiki Endo
ddbb0c3836
macros: fix handling of arguments of #[tokio::main] attribute ( #1578 )
2019-09-23 03:05:04 +09:00
Taiki Endo
376d63867a
chore: update pin-project to 0.4.0-beta.1 ( #1586 )
2019-09-23 01:52:14 +09:00
Taiki Endo
eb2d0fbcd1
net: use Box::pin instead of Pin::new(Box::new) ( #1587 )
2019-09-22 09:28:55 -07:00
Taiki Endo
d1f60ac4c6
chore: deny warnings for doc tests ( #1539 )
2019-09-19 15:50:12 +09:00
Taiki Endo
e2161502ad
chore: fix clippy check failure ( #1569 )
2019-09-18 10:19:44 -07:00
Taiki Endo
efb27731ad
timer: use our own AtomicU64 on targets with target_has_atomic less than 64 ( #1538 )
2019-09-13 10:18:32 -07: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
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
fff39c03b1
ci: deny warnings in cirrus ( #1425 )
2019-08-11 01:41:51 +09: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
Taiki Endo
0bb015588a
codec: add AsyncBufRead/BufRead implementations ( #1385 )
...
* AsyncBufRead for FramedWrite2<T>
* BufRead for FramedWrite2<T>
* AsyncBufRead for Fuse<T, U>
* BufRead for Fuse<T, U>
2019-08-03 20:15:50 -07:00
Taiki Endo
6dda866191
tokio: re-enable StreamExt ( #1362 )
2019-07-30 09:55:34 -07:00
Taiki Endo
03e450deb1
sync: switch branch of loom dev-dependency to master ( #1367 )
...
* sync: switch branch of loom dev-dependency to master
* replace loom::fuzz with loom::model
2019-07-30 10:11:46 -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
e88d10a3cb
chore: bump to newer nightly ( #1338 )
2019-07-22 06:04:02 +09:00
Taiki Endo
9af07ce208
chore: remove redundant field names in struct literals ( #1334 )
2019-07-20 10:43:19 -07:00
Taiki Endo
1b2d997863
chore: use ptr::{null, null_mut} instead of 0 as *{const, mut} ( #1333 )
2019-07-20 10:41:02 -07:00
Taiki Endo
7a52ddcd09
chore: remove unnecessary conversion ( #1332 )
2019-07-20 12:10:42 -04:00
Taiki Endo
a88308ed9f
tokio: add AsyncReadExt::read_to_string ( #1326 )
2019-07-19 11:50:00 -07:00
Taiki Endo
b14e189e44
add #[must_use] to more futures and streams ( #1309 )
2019-07-15 13:28:56 -07:00
Taiki Endo
2dde2b448f
Fix import of ready macro
2019-07-15 11:52:13 -07:00
Taiki Endo
6742816e78
tokio: add AsyncBufReadExt::lines
2019-07-15 11:52:13 -07:00
Taiki Endo
ab040bb498
tokio: add AsyncBufReadExt::read_line
2019-07-15 11:52:13 -07:00
Taiki Endo
0cfa120ba8
tokio: add AsyncBufReadExt::read_until
2019-07-15 11:52:13 -07:00
Taiki Endo
5774a9cd64
io: add AsyncBufRead trait
2019-07-15 11:52:13 -07:00
Taiki Endo
ca708d6d87
chore: update rand dependency to 0.7 ( #1302 )
2019-07-15 10:13:10 -07:00
Taiki Endo
e5525628cd
chore: remove usage of deprecated ONCE_INIT ( #1281 )
2019-07-10 08:35:07 -07:00
Taiki Endo
7b86acb71d
chore: Update futures-preview to 0.3.0-alpha.17 ( #1267 )
2019-07-04 14:34:57 -07:00
Taiki Endo
ceed29586b
io: fix documents ( #1231 )
2019-07-01 20:44:12 -07:00
Taiki Endo
88b942652c
async-await: fix examples ( #1050 )
...
* Fix crate path in `Cargo.toml` of examples
* Add `edition2018` to examples in the documentation to make it compiled
on Rust 2018
* Fix an example in the documentation
2019-04-16 14:19:38 -04:00
Taiki Endo
5029e80a89
async-await: update to new futures_api ( #1049 )
2019-04-16 14:07:03 -04:00
Taiki Endo
599955f716
Replace try! macro with ? operator ( #1024 )
2019-04-01 13:45:59 -07:00
Taiki Endo
4985e0c608
async-await: update to new future/task API ( #919 )
...
- Rewrite noop_waker with items from the new API and replaces
LocalWaker with Waker.
- Bump the minimum required version for `tokio-async-await` to
1.34.0-nightly.
- `Unpin` was added to std prelude.
- Add `cargo check` to .travis.yml
Fixes : #908
2019-02-22 13:30:21 -08:00
Taiki Endo
9a8d087c69
Allow deprecated Error::cause ( #818 )
...
Error::cause is deprecated in Rust 1.33, but this allows Error::cause
until the minimum supported version of tokio is Rust 1.30.
When the minimum support version of tokio reaches Rust 1.30,
replace Error::cause with Error::source.
Fixes : #817
2019-01-02 14:12:11 -08:00