Skip to content

johnarumemi/rust-async

Repository files navigation

Description

Some experiments with concurrent programming created while working on the Asynchronous Programming in Rust (Packt) Book. When considering wether to place some code here or in rust-async-snippets, larger projects should be placed here and smaller examples that explore a very minute / specific concept should be placed in rust-async-snippets.

Related Projects

  1. rust-async-snippets (private repo)

    These hold smaller snippets of code created while working through the Async book.

  2. rust-async-utils (private repo)

    In order to test out various pieces of code created in this book and their concurrent behaviour, some additional tools where also created. These are placed in this repo.

  3. mini-mio (private repo)

    This expands on the mini-mio crate that is a workspace member of this repo.

Packages

mini-mio

📝 There is a separate and expanded repo for this now found in the mini-mio private repo.

cargo run -p mini-mio

Simple experiment in creating a library that abstracts over a platforms provided event queue implementation. In this case, the focus is on epoll. Hence, this will need to be run on a linux distro and won't work on Mac OSX or Windows. No assembly is used, so it should work on aarch64 or x86_64 architectures.

Requirements:

stackfull-coroutine

fibers / green threads implementation.

stackless-coroutine

lazy future based implementation.

a-coroutine

Requirements:

  • delayserver (found in rust-async-utils). Note that delayserver is expected to be at 127.0.0.1:8080

Run via following command from root directory:

cargo run -p stackless-coroutine --bin a-coroutine

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages