Taiki Endo
1a423b3322
chore: remove doc URL from Cargo.toml ( #4251 )
...
https://doc.rust-lang.org/cargo/reference/manifest.html#the-documentation-field
> If no URL is specified in the manifest file, crates.io will
> automatically link your crate to the corresponding docs.rs page.
2021-11-23 11:53:32 +01:00
Taiki Endo
a8b662f643
ci: upgrade to new nightly ( #4268 )
2021-11-23 19:29:57 +09:00
Taiki Endo
cf3206842c
chore: bump MSRV to 1.46 ( #4254 )
2021-11-23 12:09:24 +09:00
Taiki Endo
8943e8aeef
macros: address remainging clippy::semicolon_if_nothing_returned warning ( #4252 )
2021-11-22 18:41:17 +09:00
Taiki Endo
fe770dc509
chore: fix newly added warnings ( #4253 )
2021-11-22 18:40:57 +09:00
Taiki Endo
8b6542fc3e
chore: update nix to 0.23 ( #4255 )
2021-11-22 06:13:14 +09:00
Taiki Endo
cf550b2183
ci: ignore RUSTSEC-2020-0159 in audit ( #4186 )
2021-10-21 10:27:26 +02:00
Taiki Endo
095012b03b
macros: fix type resolution error in #[tokio::main] ( #4176 )
2021-10-19 12:49:57 +09:00
Taiki Endo
08ed41f339
chore: fix typos ( #3907 )
2021-07-01 02:06:56 +09:00
Taiki Endo
9d8b37d51a
macros: suppress clippy::default_numeric_fallback lint in generated code ( #3831 )
2021-06-02 18:16:23 +09:00
Taiki Endo
932be12481
ci: ignore private crates in minimal-versions check ( #3827 )
2021-05-31 23:39:06 +09:00
Taiki Endo
8c395dfe61
io: impl AsyncSeek for BufReader/BufWriter/BufStream ( #3491 )
2021-05-14 19:32:00 +09:00
Taiki Endo
9ff7d8c352
net: hide net::unix::datagram module from docs ( #3775 )
2021-05-10 04:35:09 +09:00
Taiki Endo
8324317005
doc: fix doc-cfg on io::duplex, io::copy_bidirectional, and task::unconstrained ( #3773 )
2021-05-10 04:03:42 +09:00
Taiki Endo
7207e3ca43
signal: use std::os::raw::c_int instead of libc::c_int on public API ( #3774 )
2021-05-10 02:53:57 +09:00
Taiki Endo
312321cbd3
chore: enable syntax highlighting for toml in readme
2021-05-09 16:21:36 +02:00
Taiki Endo
17c7ce616c
benches: fix build error ( #3769 )
2021-05-09 22:26:20 +09:00
Taiki Endo
f9ce18a524
macros: improve diagnostics on type mismatch ( #3766 )
2021-05-09 18:58:05 +09:00
Taiki Endo
c4b6b130f3
chore: bump nightly to nightly-2021-04-25 ( #3754 )
2021-05-05 17:39:17 +02:00
Taiki Endo
7384813979
chore: update proptest to 1 ( #3653 )
2021-03-27 19:34:11 +09:00
Taiki Endo
a257a3a2b1
io: add AsyncSeekExt::stream_position ( #3650 )
2021-03-27 12:28:51 +09:00
Taiki Endo and Alice Ryhl
36d7dab504
chore: remove html_root_url ( #3489 )
...
Co-authored-by: Alice Ryhl <[email protected] >
2021-02-18 14:11:39 -08:00
Taiki Endo
30b4a7486a
chore: use CARGO_BIN_EXE instead of inspecting env::current_exe() ( #3427 )
2021-01-14 09:59:37 -08:00
Taiki Endo
0595902ba4
Update issue template ( #3425 )
...
`cargo tree` subcommand is available by default since Rust 1.44.
2021-01-14 23:09:05 +09:00
Taiki Endo
d37486dd06
util: remove path deps ( #3413 )
...
* util: remove path deps
* ci: run clippy with --all-features
* ci: run tests with --all-features on FreeBSD CI
2021-01-13 00:19:57 +09:00
Taiki Endo
40d959263b
macros: fix unused_braces in generated code ( #3404 )
2021-01-11 19:20:40 +09:00
Taiki Endo
770044caa7
chore: replace deprecated compare_and_swap with compare_exchange ( #3331 )
2020-12-27 10:44:21 +01:00
Taiki Endo
ce0e9c67cf
chore: Revert "use #[non_exhaustive] instead of private unit field" ( #3323 )
...
This reverts commit 575938d457 .
2020-12-23 08:27:58 -08:00
Taiki Endo
575938d457
chore: use #[non_exhaustive] instead of private unit field ( #3320 )
2020-12-23 22:48:33 +09:00
Taiki Endo
eee3ca65d6
deps: update rand to 0.8, loom to 0.4 ( #3307 )
2020-12-22 10:28:35 +01:00
Taiki Endo
60366ca0fa
chore: update pin-project-lite to 0.2.0 ( #3139 )
2020-11-13 15:24:06 -08:00
Taiki Endo
f1f8c3cde6
chore: update proptest and nix ( #3110 )
2020-11-08 20:47:44 +09:00
Taiki Endo
871289b3e7
ci: run clippy on MSRV ( #2962 )
2020-10-15 06:30:20 +09:00
Taiki Endo
c90681bd8e
rt: simplify rt-* features ( #2949 )
...
tokio:
merge rt-core and rt-util as rt
rename rt-threaded to rt-multi-thread
tokio-util:
rename rt-core to rt
Closes #2942
2020-10-12 14:13:23 -07:00
Taiki Endo
891de3271d
net: merge tcp, udp, uds features to net feature ( #2943 )
2020-10-13 03:36:26 +09:00
Taiki Endo
c4f620cb30
chore: remove use of doc_alias feature ( #2944 )
2020-10-12 09:42:59 +02:00
Taiki Endo
b047f647b7
net: make UCred fields private ( #2936 )
2020-10-11 09:31:26 +02:00
Taiki Endo
2e05399f4b
sync: move broadcast error types into broadcast::error module ( #2937 )
...
Refs: #2928
2020-10-09 10:10:22 -07:00
Taiki Endo
41ac1ae2bc
io: make Seek and Copy private ( #2935 )
...
Refs: #2928
2020-10-09 08:33:14 -07:00
Taiki Endo
6259893094
fs: add os::windows::OpenOptionsExt ( #2923 )
2020-10-08 11:09:12 +02:00
Taiki Endo
d94ab62c54
util: fix a typo in sync/cancellation_token.rs ( #2922 )
2020-10-07 15:46:13 -07:00
Taiki Endo
c248167173
fs: switch to our own DirEntryExt trait ( #2921 )
2020-10-08 02:30:25 +09:00
Taiki Endo
02311dcfa1
io, stream: assert !Unpin for ext trait futures ( #2913 )
2020-10-06 04:44:34 +09:00
Taiki Endo
c23c1ecbcb
io, stream: make ext trait futures !Unpin ( #2910 )
...
Make these future `!Unpin` for compatibility with async trait methods.
2020-10-05 10:32:11 -07:00
Taiki Endo
561a71ad63
net: implement AsRawSocket on Windows ( #2911 )
2020-10-05 10:22:19 -07:00
Taiki Endo
0ed4127d5c
fs: seal OpenOptionsExt and DirBuilderExt ( #2909 )
2020-10-05 00:47:35 +09:00
Taiki Endo
c29f13b7a5
docs: use #[doc(no_inline)] on re-exports ( #2874 )
2020-09-24 22:59:47 +09:00
Taiki Endo
cb8f2ceb2e
chore: remove unused future/pending.rs ( #2860 )
2020-09-23 05:55:58 +09:00
Taiki Endo
6866b24ca1
ci: deny warnings on '--cfg tokio_unstable' tests ( #2859 )
2020-09-23 05:55:35 +09:00
Taiki Endo
ba8680d667
io: fix doc-cfg on AsyncSeekExt ( #2846 )
2020-09-19 20:40:37 +09:00
Taiki Endo
111894fef9
util: remove Slice wrapper ( #2847 )
2020-09-19 20:40:20 +09:00
Taiki Endo
68f7eff39e
time: remove outdated todo comment ( #2848 )
2020-09-19 20:40:03 +09:00
Taiki Endo
7a60a0b362
io: always re-export std::io ( #2606 )
2020-07-23 22:00:27 -07:00
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