Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/tokio-rs/tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://github.com/tokio-rs/tokio

Merge branch 'tokio-1.20.x' into tokio-1.23.x

a8fe333cc45c14b0566d450dff8ff85fbe974fa0 authored almost 2 years ago by Carl Lerche <[email protected]>
chore: prepare Tokio 1.20.3 release

ba81945ffc2695b71f2bbcadbfb5e46ec55aaef3 authored almost 2 years ago by Carl Lerche <[email protected]>
ci: run WASI tasks using latest Rust

This should let CI to pass.

763bdc967e3e128d1e6e000238f1d257a81bf59a authored almost 2 years ago by Carl Lerche <[email protected]>
Merge remote-tracking branch 'origin/tokio-1.18.x' into fix-named-pipes-1.20

9f98535877f8f706b436447952f40f153e2a52dc authored almost 2 years ago by Carl Lerche <[email protected]>
net: fix named pipes server configuration builder

The `pipe_mode` function would erase any previously set configuration
option that is specified u...

699573d550fabf4bfb45d82505d6709faaae9037 authored almost 2 years ago by Carl Lerche <[email protected]>
chore: prepare Tokio v1.18.4 release

9241c3eddf4a6a218681b088d71f7191513e2376 authored almost 2 years ago by Carl Lerche <[email protected]>
rt: use internal ThreadId implementation (#5329)

The version provided by `std` has limitations, including no way to try
to get a thread ID witho...

c6552c5680fa14105547cfbbc26b26d67197b64e authored almost 2 years ago by Carl Lerche <[email protected]>
rt: move task::Id into its own file (#5327)

This is a minor internal cleanup.

048049f8883f1bc73ee5d3fa3c94e61cf41d1e38 authored almost 2 years ago by Carl Lerche <[email protected]>
ci: update cargo-check-external-types to 0.1.6 (#5325)

98d484e29c363b1b0b8b605ddb7d742367a8fb5c authored almost 2 years ago by Taiki Endo <[email protected]>
tests: fix SB violation in LeakedBuffers (#5322)

ef0224246b9473b3500df7b4704a4f3680d43975 authored almost 2 years ago by Taiki Endo <[email protected]>
fs: use chunks in `fs::read_dir` (#5309)

4a4f80ca700f65c018aebec7284b8364aa917bfd authored almost 2 years ago by icedrocket <[email protected]>
io: optimize shutdown check on I/O operations (#5300)

The global flag remains and is used to prevent duplicated shutdowns and
new io operations after...

9af2f5ee5931a79684d4afd8897e54aafa39c156 authored almost 2 years ago by Hyeonu Park <[email protected]>
ci: update Swatinem/rust-cache action to v2 (#5320)

b75dba690442bafd12b5ceba4c09cab14c5c80f1 authored almost 2 years ago by Taiki Endo <[email protected]>
process: fix typo in `process::imp::Pipe` comment (#5314)

Signed-off-by: Changyuan Lyu <[email protected]>

353e5cabb8740ff90f928e447a54e70f66fff5be authored almost 2 years ago by Lencerf <[email protected]>
sync: document that there is no spsc and spmc channel (#5306)

8d58dc85b5fbd7509fb4b44874043565e69f9dee authored almost 2 years ago by Alice Ryhl <[email protected]>
ci: remove uses of unmaintained actions-rs actions (#5316)

- Use dtolnay/rust-toolchain instead of actions-rs/toolchain
- Use cargo/cross directly instead...

519afd4458967eaf7009b0d0fc19cfb36de6f617 authored almost 2 years ago by Taiki Endo <[email protected]>
rt: read environment variable for worker thread count (#4250)

682e93df93292a47e7d6d04bd9e4922c5bbae5b4 authored about 2 years ago by Pure White <[email protected]>
signal: remove redundant Pin around globals (#5303)

b9ae7e6659f31508fbe81e29508984d0c6f2d0b4 authored about 2 years ago by Alice Ryhl <[email protected]>
task: rename `State::has_join_waker` to `State::is_join_waker_set` (#5248)

d9e0f6611351be6ec02fa95bfcd9fef710714eaf authored about 2 years ago by Abutalib Aghayev <[email protected]>
metrics: make `num_idle_blocking_threads` test less flaky (#5302)

6b3727d5804bbe08f7e5230949ee809732cf1010 authored about 2 years ago by Alice Ryhl <[email protected]>
test-util: don't auto-advance time when a `spawn_blocking` task is running (#5115)

e14ca72e68fbfa04f12408ed916bf5f857dfa232 authored about 2 years ago by Jason Orendorff <[email protected]>
tokio: improve detection of whether a target supports AtomicU64 (#5284)

42db755ac19fe0c194da59215408063607a78faf authored about 2 years ago by John Nunley <[email protected]>
sync: decrease stack usage in mpsc channel (#5294)

81b50e946fe2f6b30de5e61356ab7cae560956a9 authored about 2 years ago by John Nunley <[email protected]>
rt: implement task::Id using `StaticAtomicU64` (#5282)

This patch simplifies the implementation of `task::Id` by moving
conditional compilation into t...

39766220f4adc969ef7d026e04d752f5dfe55fb9 authored about 2 years ago by Carl Lerche <[email protected]>
util: remove `Encoder` bound on `FramedParts` constructor (#5280)

ae69d11d1f9f17c536f35369ab597cebb4bd0159 authored about 2 years ago by Matt Fellenz <[email protected]>
ci: test no const mutex new (#5257)

This adds CI coverage for a couple of code paths that are not currently
hit in CI:

* no `con...

c693ccd210c7a318957b0701f4a9632b2d545d6a authored about 2 years ago by Carl Lerche <[email protected]>
rt: allow configuring I/O events capacity (#5186)

Adds a method `Builder::max_io_events_per_tick()` to the runtime builder. This can be used to co...

36039d0bb94d1accf8ae5569f6c50ca5a0c661ef authored about 2 years ago by Divy Srivastava <[email protected]>
chore: update CI's clippy version to 1.65 (#5276)

22cff80048c62ed0fa20065888667d00d5aedd14 authored about 2 years ago by Carl Lerche <[email protected]>
ci: update CI environment to FreeBSD 12.4 (#5272)

12.3 will soon be EoL

07da5e73eef109c3064b22f484ff930702c1c1a0 authored about 2 years ago by Alan Somers <[email protected]>
ci: future-proof for FreeBSD 12 (#5260)

Raise the mio-aio dev dependency, which transitively brings in Nix, to
ensure that the tests wi...

c4ed16d1b4b299c4a537d7cc4efb078d5fe868a3 authored about 2 years ago by Alan Somers <[email protected]>
chore: prepare Tokio v1.23 release (#5270)

### Fixed
- net: fix Windows named pipe connect ([#5208])
- io: support vectored writes for ...

3ce5a2681c734e134c2aa6d6cf91b8d2631bd82b authored about 2 years ago by Carl Lerche <[email protected]>
rt: fix `*_closed` false positives (#5231)

Readiness futures inconsistently return the current readiness of an I/O resource if it is immedi...

644cb8207df09c19543cf9b096a43a66f8df9a0f authored about 2 years ago by Tymoteusz Wiśniewski <[email protected]>
io: impl `std::io::BufRead` on `SyncIoBridge<T>` (#5265)

Signed-off-by: Jiahao XU <[email protected]>

a1316cd792596baa079144bf4672f59e99556531 authored about 2 years ago by Jiahao XU <[email protected]>
docs: add note about current-thread + Handle::block_on (#5264)

There's already an existing warning about this combo in the
documentation for `Handle::block_on...

86ffabe2af69f2440be26d153fd692689c9947fb authored about 2 years ago by sharnoff <[email protected]>
sync: improve watch docs (#5261)

00bf5ee8a855c28324fa4dff3abf11ba9f562a85 authored about 2 years ago by Vitalii Kryvenko <[email protected]>
Fix typo (#5255)

87510100cebd7e2525e1a081c6a526ac95cf7967 authored about 2 years ago by Tilman <[email protected]>
chore: move conditional AtomicU64 impl to new file (#5256)

Keeping the implementation out of a macro lets rustfmt apply to it.

2be71ad74639a54dbed471faaf0dca1cf20eb96d authored about 2 years ago by Carl Lerche <[email protected]>
rt: fix new yield_now behavior with block_in_place (#5251)

PR #5223 changed the behavior of `yield_now()` to store yielded tasks
and notify them *after* p...

d1b789f33aa9d2bbca84f24b810235a10b149e92 authored about 2 years ago by Carl Lerche <[email protected]>
rt: yield_now defers task until after driver poll (#5223)

Previously, calling `task::yield_now().await` would yield the current
task to the scheduler, bu...

22862739dddd49a94065aa7a917cde2dc8a3f6bc authored about 2 years ago by Carl Lerche <[email protected]>
chore: prepare tokio-macros v1.8.2 (#5246)

993a60b7c79b6fbdad872c6a173c2e6fe42b117f authored about 2 years ago by Taiki Endo <[email protected]>
macros: fix span of body variable (#5244)

5d25ec46d5fffaf52dbe3c87df0a35a61041a974 authored about 2 years ago by Taiki Endo <[email protected]>
Prepare tokio-macros 1.8.1

766f22fae34d8b77384f63b01ffb250815fde74a authored about 2 years ago by Thomas de Zeeuw <[email protected]>
Use #crate_ident in test macro

Instead of ::tokio.

f5686f6bc02c9b4d91d8b43c2d974ba66d79a416 authored about 2 years ago by Thomas de Zeeuw <[email protected]>
Box Futures in #[tokio::test]

This reduces the amount of copies of the Runtime::block_on and related
functions the compiler ha...

2fcc6c2cb0e38d5e36b40d9a2fdb9871e2825fa7 authored about 2 years ago by Thomas de Zeeuw <[email protected]>
Pin Future to stack in #[tokio::test]

Instead of boxing it.

224acd2500559d2bf90c875f644386f1d784b47a authored about 2 years ago by Thomas de Zeeuw <[email protected]>
net: update `try_io` docs with interest limitations (#5222)

28ec4a6161210a1ffb66cdcd7958b86b4b78b54e authored about 2 years ago by Tymoteusz Wiśniewski <[email protected]>
tests: fix a typo (#5236)

Signed-off-by: Loong <[email protected]>

939b5bb42f36981ad1dc7dd7a7942718f2d61a5f authored about 2 years ago by Loong Dai <[email protected]>
task: fix the incomplete/wrong description of JOIN_WAKER bit. (#5217)

* task: fix the incomplete/wrong description of JOIN_WAKER bit (#5217)

718d6ce8cac9f2e081c0abf043fb13d7859ec16c authored about 2 years ago by Abutalib Aghayev <[email protected]>
net: replace socket with pipe in named pipe docs (#5221)

e3164282107dda2fd269b6586036f97208944add authored about 2 years ago by Tymoteusz Wiśniewski <[email protected]>
chore: add tokio_no_atomic_u64 cfg (#5226)

fc83e01949198e10477020eaba560e91dc66054e authored about 2 years ago by Taiki Endo <[email protected]>
examples: update hello world comment (#5219)

3a5f7b7f2f0b4f6ca502e60e563f75c68d50ea12 authored about 2 years ago by Loong Dai <[email protected]>
signal: fix a typo (#5224)

6da81471f959e59de0af0d0a3829112eeaf76e01 authored about 2 years ago by Loong Dai <[email protected]>
net: replace winapi with windows-sys (#5204)

299bd6aee3f0ff30a719b327759c088a10813ac8 authored about 2 years ago by Kenny Kerr <[email protected]>
runtime: fix typo in runtime builder docs (#5218)

Signed-off-by: Loong <[email protected]>

e14307393a3e04cc50b3a04a019b589a2d409d3f authored about 2 years ago by Loong Dai <[email protected]>
runtime: reduce codegen per task (#5213)

This PR should hopefully reduce the amount of code generated per
future-type spawned on the run...

45e37dbfa27162e3ecb1ca2a902a7d21eeecda8b authored about 2 years ago by Alice Ryhl <[email protected]>
sync: add owned future for `CancellationToken` (#5153)

304b5152a71cb14140160324c54ce42a90eaa406 authored about 2 years ago by Jiahao XU <[email protected]>
process: support `ChildStdin::poll_write_vectored` on unix (#5216)

f15d14ee91f5d70fde2ef638b2568c9225ba5412 authored about 2 years ago by Joonas Koivunen <[email protected]>
doc: update `parking_lot` info in feature list (#5215)

6a2cd9a652351e59c63e21a08315ba0edfbd8802 authored about 2 years ago by Alice Ryhl <[email protected]>
net: fix named pipe connect (#5208)

2682c505e800ec0db38b9e9ea2dd3f0d582b1dcb authored about 2 years ago by Tymoteusz Wiśniewski <[email protected]>
ci: run tests on ARM and i686 using cross (#5196)

This patch updates CI to use `cross` to run Tokio tests on virtualized
ARM and i686 VMs. Becaus...

808d52563e234769d2fc296ff17ca12173735d9e authored about 2 years ago by Carl Lerche <[email protected]>
chore: prepare Tokio v1.22.0 (#5203)

bf31759bff624a04e31cdb84fbb13c19105771dc authored about 2 years ago by Alice Ryhl <[email protected]>
ci: remove libc types from external types allow list (#5197)

d65826236b9f194ac4e2640f6a846c1bcae064c2 authored about 2 years ago by John DiSanti <[email protected]>
sync: specify return type of `oneshot::Receiver` in docs (#5198)

1cbbcc9ad57ccf413f58d9dcd66d2ea7e68a0766 authored about 2 years ago by Lucas Kent <[email protected]>
net: remove libc type leakage in a public API (#5191)

a66802015043a2bd94b15d17c4131bc3431c8e14 authored about 2 years ago by Abutalib Aghayev <[email protected]>
chore: fix compilation on master (#5190)

01f019397182097c955bae5358034bb9763ba964 authored about 2 years ago by Alice Ryhl <[email protected]>
task: add `task::id()` and `task::try_id()` (#5171)

71bd49e146ac5288fd4cb327dd3f86eb71b3a865 authored about 2 years ago by Abutalib Aghayev <[email protected]>
sync: add `mpsc::WeakUnboundedSender` (#5189)

Signed-off-by: Artyom Kozhemiakin <[email protected]>

582d51290772491aa01b2efbbc86d4bdc5fabe21 authored about 2 years ago by Artyom Kozhemiakin <[email protected]>
rt: fix `LocalSet` drop in thread local (#5179)

`LocalSet` cleans up any tasks that have not yet been completed when it is
dropped. Previously,...

b7812c85ca2d051d47cec023b880cbf8cdcbc313 authored about 2 years ago by Carl Lerche <[email protected]>
rt: move `CoreStage` methods to `Core` (#5182)

9e3fb1673a73046363af64c09a040eeed67f2a4c authored about 2 years ago by Abutalib Aghayev <[email protected]>
rt: fix accidental unsetting of current handle (#5178)

An earlier change updated `enter_runtime` to also set the current
handle. However, the change d...

53cba023dac45c2ab697bd1ead6c86cf4da3561c authored about 2 years ago by Carl Lerche <[email protected]>
rt: combine context and entered thread-locals (#5168)

A previous patch moved code related to entering a runtime into the
context module but did not c...

236d02666765bc3a37ad8286983300854ab0f8a4 authored about 2 years ago by Carl Lerche <[email protected]>
task: elaborate safety comments in task deallocation (#5172)

909439c9f54d8c8d7050996d279504a58739c417 authored about 2 years ago by Alice Ryhl <[email protected]>
runtime: fix `unsync_load` on atomic types (#5175)

9884fe33943b73c946df8caa88f5d9ccd0066a63 authored about 2 years ago by Alice Ryhl <[email protected]>
ci: update miri flags (#5174)

a1002a2203aaed32624f49c7222390555c24d5ae authored about 2 years ago by Alice Ryhl <[email protected]>
chore: bump clippy version (#5173)

fc9518b62714daac9a38b46c698b94ac5d5b1ca2 authored about 2 years ago by Alice Ryhl <[email protected]>
runtime: fix typo in expect message (#5169)

f4643608adddcf80dea03965d38347e91b71bc87 authored about 2 years ago by Yiyu Lin <[email protected]>
rt: move `enter` into `context` (#5167)

This moves the functions, types, and thread-local related to entering a
runtime into the contex...

687aa2bae5d6c70bb942238d793d9d2a41e59ac9 authored about 2 years ago by Carl Lerche <[email protected]>
rt: remove handle reference from each scheduler (#5166)

Instead of each scheduler flavor holding a reference to the scheduler
handle, the scheduler han...

b2f5dbea4703be0c97150b91d3b2c46f29f1a0bf authored about 2 years ago by Carl Lerche <[email protected]>
rt: export metrics about the blocking thread pool (#5161)

Publish the blocking thread pool metrics as thread-safe values, written
under the blocking thre...

23fdd32b0180f6a0f65040170755901ea6f48056 authored about 2 years ago by Duarte Nunes <[email protected]>
sync: fix `Sync` assertion for `AtomicWaker` (#5165)

5b46395a1e165bc36ab0b798b958ef3d9b7aa060 authored about 2 years ago by Hubert Hirtz <[email protected]>
rt: unify entering a runtime with Handle::enter (#5163)

This is a first step towards unifying the concepts of "entering a
runtime" and setting `Handle:...

32da1aa9da833f6db59d6a97e2a569b780d9f6b4 authored about 2 years ago by Carl Lerche <[email protected]>
chore: fix tests for Rust 1.65 release (#5164)

Rust 1.65 reduces some struct sizes.

df6348fb4a8d9d34d241ab7275688e1ab489383c authored about 2 years ago by Carl Lerche <[email protected]>
chore: typo in TryLockError for RwLock::try_write (#5160)

Fixes an incoherent sentence describing when RwLock::try_write (and related) would error with Tr...

74a29be6077f4093373c647a2e3834bb5e2e9cd7 authored about 2 years ago by Rustom Shareef <[email protected]>
rt: move `Runtime` into its own file (#5159)

This removes the `Runtime` implementation from a cfg macro so it can be
formatted.

26791a62bce6287e3a7274a726e690f98a29a34b authored about 2 years ago by Carl Lerche <[email protected]>
rt: move park logic into runtime module (#5158)

The runtime is the primary user of parking. Moving park into runtime
will help future cleanups ...

467adec4e16bdf1b5461e77d87d1d56b4a29f001 authored about 2 years ago by Carl Lerche <[email protected]>
rt: move budget state to context thread-local (#5157)

This patch consolidates the budget thread-local state with the
`runtime::context` thread local....

d8ee2055304e4fcd875d5cec4ed27e8070cc0306 authored about 2 years ago by Carl Lerche <[email protected]>
rt: rm coop::budget from `LocalSet::run_until` (#5155)

The `LocalSet::run_until` future is just a "plain" future that should
run on a runtime that alr...

ca8e176ce98d2372c24c74839877189cbc9883dc authored about 2 years ago by Carl Lerche <[email protected]>
rt: move `coop` mod into `runtime` (#5152)

This is a step towards unifying thread-local variables. In the future,
`coop` will be updated t...

a051ed726f3b99b077e8c9ef8ef1df2ab2943213 authored about 2 years ago by Carl Lerche <[email protected]>
sync: make `Notify` panic safe (#5154)

203a079743629db4685d6903d11089143f035f7b authored about 2 years ago by Yiyu Lin <[email protected]>
rt: rename some confusing internal variables/fns (#5151)

This patch does some internal renames to remove some confusion.

* `allow_blocking` is renamed...

b1f40f4356c7f7be0e1959f992608d2058a76deb authored about 2 years ago by Carl Lerche <[email protected]>
io: add lines example for `StreamReader` (#5145)

a9d5eb2fc7cd630e00afd8a4fd512c1a578ff1a6 authored about 2 years ago by Alice Ryhl <[email protected]>
net: fix function name in UdpSocket recv documentation (#5150)

In the "cancellation safety" section of the UdpSocket recv function, "recv_from" is referenced w...

c2210dfe37601f0673fbb0b046a33b7a63707e9c authored about 2 years ago by Matt Schulte <[email protected]>
rt: add runtime::context to unify thread-locals (#5143)

This patch is the first step towards unifying all the thread-local
variables spread out across ...

df99428c17ff03134d8f081ee80ef0f6fbe3c813 authored about 2 years ago by Carl Lerche <[email protected]>
sync: add `Semaphore::MAX_PERMITS` (#5144)

d1a8ec6495701e47b9ce34ddf6fa4baca1597290 authored about 2 years ago by Vitaly Shukela <[email protected]>
rt: add `Handle::runtime_flavor` (#5138)

fe1843c0e02473564ad3adc90b2c033d7c363df1 authored about 2 years ago by Abutalib Aghayev <[email protected]>
sync: name mpsc semaphore types (#5146)

Make code easier to read. No functional/perf changes.

15b362d2ddfc9eb51029b74d69dd74216a7a5b94 authored about 2 years ago by Stepan Koltsov <[email protected]>
io: add `tokio_util::io::{CopyToBytes, SinkWriter}` (#5070)

Co-authored-by: Alice Ryhl <[email protected]>
Co-authored-by: Simon Farnsworth <simon@farnz...

620880f4ca1bb3ea96e8018e220f5e5fd1317875 authored about 2 years ago by Daniel Bischof <[email protected]>
sync: add `PollSemaphore::poll_acquire_many` (#5137)

29c6de0e3e823206c8edb4a810f018c1fab7bf3c authored about 2 years ago by Duarte Nunes <[email protected]>
sync: add `Mutex::blocking_lock_owned` (#5130)

3886a3eaf4f513cc3522597a6fdd990e4f68b922 authored about 2 years ago by Sebastian Meßmer <[email protected]>
time: document that timeouts check only before poll (#5126)

3b5ef4eb984df78f5bfc4f9ff22181908177886f authored about 2 years ago by Ryan Thomas <[email protected]>