#async-runtime #multi-threading #cuckoo #applications #future

cuckoo-runtime

An async runtime that mostly runs inside other multi-threaded applications

5 releases

Uses new Rust 2024

0.0.5-rc1 May 29, 2025
0.0.4 May 29, 2025
0.0.3 May 29, 2025
0.0.2 May 28, 2025
0.0.1 May 28, 2025

#920 in Asynchronous

Download history

174 downloads per month

MIT license

11KB
217 lines

A work-stealing runtime to run async CPU-heavy rust workloads inside multi-threaded applications.

The main idea behind Cuckoo is that some systems already have opinionated threading models, and spinning up additional threads just to run some async code might cause increased core contention and hurt overall performance.

Cuckoo is mostly intended to run async code in a block fashion (within block_on blocks), and while a thread is waiting on some future, it can take work from other threads and make some progress on them.

Current Status

Cuckoo is completely experimental, it might deadlock, cause unexpected behavior or is probably not very fast.


Cuckoo

Cuckoo is an experimental rust async runtime inteded to be embedded inside other multi-threaded applications like databases or query engines that do their own thing.

Name

The name is inspired by the bird of the same name, that tends to lay its eggs in the nests of other species.

Dependencies

~2.5MB
~42K SLoC