summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-10-19runtime: remove unneeded #[cfg(feature = "rt")] (#2996)Alice Ryhl
2020-10-19tokio: add Runtime::spawn_blocking (#2980)Marc-Antoine Perennou
This allows writing rt.spawn_blocking(f); instead of let _enter = rt.enter(); tokio::task::spawn_blocking(f); Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-10-19docs: fix typo in runtime module documentation (#2992)nickelc
2020-10-19util: add a poll_read_buf shim to tokio-util (#2972)John-John Tedro
2020-10-19io: add copy_buf (#2884)Zahari Dichev
2020-10-19sync: implement Clone for broadcast::Receiver (#2933)Zephyr Shannon
2020-10-17docs: fix typos on UdpSocket (#2979)Evan Cameron
2020-10-16doc: update version to 0.3 in module documentation (#2974)messense
2020-10-16Fix doc typo (#2967)Alice Ryhl
2020-10-16Update documentation of AsyncRead to reflect use of ReadBufJohn-John Tedro
2020-10-15chore: post release Cargo.toml fixes (#2963)Carl Lerche
2020-10-15chore: prepare for v0.3.0 release (#2960)Carl Lerche
2020-10-15ci: run clippy on MSRV (#2962)Taiki Endo
2020-10-13rt: update docs for `0.3` changes (#2956)Lucio Franco
This PR updates the runtime module docs to the changes made in `0.3` release of tokio. Closes #2720
2020-10-13rt: tweak spawn_blocking docs (#2955)Carl Lerche
2020-10-13rt: switch `enter` to an RAII guard (#2954)Carl Lerche
2020-10-13process: update docs regarding zombie processes (#2952)Ivan Petkov
2020-10-12meta: combine `net` and `dns`, use `parking_lot` (#2951)Carl Lerche
This combines the `dns` and `net` feature flags. Previously, `dns` was included as part of `net`. Given that is is rare that one would want `dns` without `net`, DNS is now entirely gated w/ `net`. The `parking_lot` feature is included as part of `full`. Some misc docs are tweaked to reflect feature flag changes.
2020-10-12rt: simplify rt-* features (#2949)Taiki Endo
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-12chore: refactor runtime driver usage of `Either` (#2918)Ivan Petkov
2020-10-12rt: `worker_threads` must be non-zero (#2947)Lucio Franco
Co-authored-by: Alice Ryhl <alice@ryhl.io>
2020-10-13net: merge tcp, udp, uds features to net feature (#2943)Taiki Endo
2020-10-12rt: Remove `threaded_scheduler()` and `basic_scheduler()` (#2876)Lucio Franco
Co-authored-by: Alice Ryhl <alice@ryhl.io> Co-authored-by: Carl Lerche <me@carllerche.com>
2020-10-12time: move error types into `time::error` (#2938)Juan Alvarez
2020-10-12time: Clean up `Instant` docs to align with `std` (#2946)Lucio Franco
Co-authored-by: Alice Ryhl <alice@ryhl.io>
2020-10-12io: Rename `ReadBuf` methods (#2945)Lucio Franco
This changes `ReadBuf::add_filled` to `ReadBuf::advance` and `ReadBuf::append` to `ReadBuf::put_slice`. This is just a mechanical change. Closes #2769
2020-10-12sync: change chan `closed(&mut self)` to `closed(&self)` (#2939)Zahari Dichev
2020-10-12chore: remove use of doc_alias feature (#2944)Taiki Endo
2020-10-11net: make UCred fields private (#2936)Taiki Endo
2020-10-09sync: move broadcast error types into broadcast::error module (#2937)Taiki Endo
Refs: #2928
2020-10-09fs: future proof `File` (#2930)Carl Lerche
Changes inherent methods to take `&self` instead of `&mut self`. This brings the API in line with `std`. This patch is implemented by using a `tokio::sync::Mutex` to guard the internal `File` state. This is not an ideal implementation strategy doesn't make a big impact compared to having to dispatch operations to a background thread followed by a blocking syscall. In the future, the implementation can be improved as we explore async file-system APIs provided by the operating-system (iocp / io_uring). Closes #2927
2020-10-09net: switch socket methods to &self (#2934)Carl Lerche
Switches various socket methods from &mut self to &self. This uses the intrusive waker infrastructure to handle multiple waiters. Refs: #2928
2020-10-09io: make Seek and Copy private (#2935)Taiki Endo
Refs: #2928
2020-10-08time: rename `Delay` future to `Sleep` (#2932)Juan Alvarez
2020-10-08chore: Fix clippy lints (#2931)bdonlan
Closes: #2929 Co-authored-by: Bryan Donlan <bdonlan@amazon.com>
2020-10-08net: use &self with TcpListener::accept (#2919)Carl Lerche
Uses the infrastructure added by #2828 to enable switching `TcpListener::accept` to use `&self`. This also switches `poll_accept` to use `&self`. While doing introduces a hazard, `poll_*` style functions are considered low-level. Most users will use the `async fn` variants which are more misuse-resistant. TcpListener::incoming() is temporarily removed as it has the same problem as `TcpSocket::by_ref()` and will be implemented later.
2020-10-08fs: add os::windows::OpenOptionsExt (#2923)Taiki Endo
2020-10-08io: remove Poll from the AsyncSeek::start_seek return value (#2885)Zahari Dichev
2020-10-07util: fix a typo in sync/cancellation_token.rs (#2922)Taiki Endo
2020-10-07net: add `TcpSocket` for configuring a socket (#2920)Carl Lerche
This enables the caller to configure the socket and to explicitly bind the socket before converting it to a `TcpStream` or `TcpListener`. Closes: #2902
2020-10-08fs: switch to our own DirEntryExt trait (#2921)Taiki Endo
2020-10-06docs: more docs for UdpSocket (#2883)Evan Cameron
2020-10-06time: clean time driver (#2905)greenwoodcm
* remove unnecessary wheel::Poll the timer wheel uses the `wheel::Poll` struct as input when advancing the timer to the next time step. the `Poll` struct contains an instant representing the time step to advance to and also contains an optional and mutable reference to an `Expiration` struct. from what I can tell, the latter field is only used in the context of polling the wheel and does not need to be exposed outside of that method. without the expiration field the `Poll` struct is nothing more than a wrapper around the instant being polled. this change removes the `Poll` struct and updates integration points accordingly. * remove Stack trait in favor of concrete Stack implementation * remove timer Registration struct
2020-10-06process: add ProcessDriver to handle orphan reaping (#2907)Ivan Petkov
2020-10-05time: move DelayQueue to tokio-util (#2897)bdonlan
This change is intended to do the minimum to unblock 0.3; as such, for now, we duplicate the internal `time::wheel` structures in tokio-util, rather than trying to refactor things at this stage. Co-authored-by: Bryan Donlan <bdonlan@amazon.com>
2020-10-06io, stream: assert !Unpin for ext trait futures (#2913)Taiki Endo
2020-10-05stream: remove bytes from public API (#2908)Alice Ryhl
2020-10-05io, stream: make ext trait futures !Unpin (#2910)Taiki Endo
Make these future `!Unpin` for compatibility with async trait methods.
2020-10-05net: implement AsRawSocket on Windows (#2911)Taiki Endo
2020-10-05sync: broadcast channel API tweaks (#2898)Alice Ryhl
Removes deprecated APIs and makes some small breaking changes.