libfringe/src/lib.rs

32 lines
605 B
Rust
Raw Normal View History

2015-04-16 20:06:57 +08:00
// This file is part of libfringe, a low-level green threading library.
2015-04-16 18:08:44 +08:00
// Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution.
2015-02-24 12:13:25 +08:00
#![feature(no_std)]
#![feature(asm, core)]
#![no_std]
2015-04-16 22:12:26 +08:00
//! libfringe is a low-level green threading library.
//! It provides only a context-swapping mechanism.
#[cfg(test)]
#[macro_use]
extern crate std;
2014-12-23 11:24:40 +08:00
pub use context::Context;
pub use stack::Stack;
2015-04-16 19:45:14 +08:00
#[cfg(feature = "os")]
pub use os::Stack as OsStack;
2014-12-23 11:24:40 +08:00
mod context;
mod stack;
2015-04-16 19:45:14 +08:00
#[cfg(feature = "os")]
mod os;
2014-12-24 13:12:39 +08:00
mod arch;
2015-04-16 19:45:14 +08:00
mod debug;
2015-04-16 19:45:14 +08:00
#[cfg(not(test))]
mod std { pub use core::*; }