forked from M-Labs/libfringe
db6a2ff89b
Now other Stack / StackSource implementations can use the same Valgrind code. Ref #3.
28 lines
402 B
Rust
28 lines
402 B
Rust
#![feature(no_std)]
|
|
#![feature(asm, core)]
|
|
#![feature(libc, page_size)]
|
|
#![no_std]
|
|
|
|
#[macro_use]
|
|
extern crate core;
|
|
|
|
#[cfg(test)]
|
|
#[macro_use]
|
|
extern crate std;
|
|
|
|
pub use context::Context;
|
|
pub use stack::{Stack, StackSource};
|
|
|
|
#[cfg(not(test))]
|
|
mod std { pub use core::*; }
|
|
|
|
pub mod context;
|
|
pub mod stack;
|
|
pub mod valgrind;
|
|
|
|
#[cfg(target_arch = "x86_64")]
|
|
mod arch;
|
|
|
|
#[cfg(feature = "os")]
|
|
pub mod os;
|