rust/src/lib.rs
2016-09-20 13:35:19 +02:00

46 lines
714 B
Rust

#![feature(
btree_range,
collections,
collections_bound,
question_mark,
rustc_private,
pub_restricted,
)]
// From rustc.
#[macro_use] extern crate rustc;
extern crate rustc_borrowck;
extern crate rustc_data_structures;
extern crate rustc_mir;
extern crate rustc_const_math;
extern crate syntax;
#[macro_use] extern crate log;
extern crate log_settings;
// From crates.io.
extern crate byteorder;
mod error;
mod interpreter;
mod memory;
mod primval;
pub use error::{
EvalError,
EvalResult,
};
pub use interpreter::{
CachedMir,
EvalContext,
Frame,
eval_main,
run_mir_passes,
StackPopCleanup,
};
pub use memory::{
Memory,
Pointer,
AllocId,
};