forked from M-Labs/libfringe
25 lines
565 B
Rust
25 lines
565 B
Rust
// This file is part of libfringe, a low-level green threading library.
|
|
// Copyright (c) edef <edef@edef.eu>
|
|
// See the LICENSE file included in this distribution.
|
|
#![feature(asm)]
|
|
#![cfg_attr(target_arch = "x86", feature(naked_functions, core_intrinsics))]
|
|
#![no_std]
|
|
|
|
//! libfringe is a low-level green threading library.
|
|
//! It provides only a context-swapping mechanism.
|
|
|
|
pub use context::Context;
|
|
pub use stack::Stack;
|
|
|
|
#[cfg(any(unix, windows))]
|
|
pub use os::Stack as OsStack;
|
|
|
|
mod context;
|
|
mod stack;
|
|
|
|
#[cfg(any(unix, windows))]
|
|
mod os;
|
|
|
|
mod arch;
|
|
mod debug;
|