A Rust library implementing safe, lightweight context switches, without relying on kernel services
Go to file
edef 77ffd6bc03 only build benches/kernel_swap on Linux 2015-04-16 10:03:13 -04:00
benches only build benches/kernel_swap on Linux 2015-04-16 10:03:13 -04:00
examples big rename — we're libfringe now 2015-04-16 08:11:12 -04:00
src big rename — we're libfringe now 2015-04-16 08:11:12 -04:00
.editorconfig add .editorconfig 2015-04-16 04:17:55 -04:00
.gitignore initial commit 2014-12-23 04:27:28 +01:00
.travis.yml pass --no-deps to cargo doc 2015-04-16 09:24:35 -04:00
Cargo.toml big rename — we're libfringe now 2015-04-16 08:11:12 -04:00
LICENSE big rename — we're libfringe now 2015-04-16 08:11:12 -04:00
README.md add README.md 2015-04-16 09:49:47 -04:00
build.rs big rename — we're libfringe now 2015-04-16 08:11:12 -04:00

README.md

travis rustdoc

libfringe

libfringe is a low-level green threading library for Rust. It's usable in freestanding environments (like kernels), but it can also provide an easy-to-use stack allocator using your operating system's memory mapping facility.

Performance

libfringe does context switches in 3.5ns flat!

test swap ... bench:         7 ns/iter (+/- 0)

Limitations

libfringe currently doesn't work on anything but x86_64, and is untested on anything but Linux.

Installation

libfringe is a Cargo package. It's not stable software yet, so you'll have to use it as a git dependency. Add this to your Cargo.toml:

[dependencies.fringe]
git = "https://github.com/edef1c/libfringe.git"

Feature flags

libfringe provides several optional features through Cargo's feature flags. Currently, all of them are enabled by default.

valgrind

Valgrind integration. libfringe will register context stacks with Valgrind.

os

Built-in stack allocator using your your operating system's anonymous memory mapping facility. Currently only available for Unix.