libfringe is a library implementing safe, lightweight context switches,
without relying on kernel services. It can be used in hosted environments
std) as well as on bare metal (using
It provides the following safe abstractions:
- an implementation of generators, Generator.
It also provides the necessary low-level building blocks:
OsStack holds a guarded stack allocated using the operating system's anonymous memory mapping facility.
OwnedStack holds a non-guarded, heap-allocated stack.
SliceStack holds a non-guarded stack allocated elsewhere and provided as a mutable slice.
Minimum alignment of a stack base address on the target platform.
A marker trait for
A trait for objects that hold ownership of a stack.