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.
-
rust-async-snippets (private repo)
These hold smaller snippets of code created while working through the Async book.
-
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.
-
This expands on the
mini-miocrate that is a workspace member of this repo.
📝 There is a separate and expanded repo for this now found in the mini-mio private repo.
cargo run -p mini-mioSimple 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:
- delayserver (found in rust-async-utils)
fibers / green threads implementation.
lazy future based implementation.
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