rust/src/lib.rs

43 lines
663 B
Rust
Raw Normal View History

2016-04-07 06:56:07 -05:00
#![feature(
btree_range,
collections,
collections_bound,
filling_drop,
2016-05-09 19:52:44 -05:00
question_mark,
2016-04-07 06:56:07 -05:00
rustc_private,
2016-06-01 10:05:20 -05:00
pub_restricted,
2016-04-07 06:56:07 -05:00
)]
// From rustc.
2016-04-06 20:00:34 -05:00
#[macro_use] extern crate rustc;
2016-06-11 13:38:28 -05:00
extern crate rustc_data_structures;
extern crate rustc_mir;
extern crate rustc_trans;
2016-06-17 06:09:20 -05:00
extern crate rustc_const_math;
extern crate syntax;
#[macro_use] extern crate log;
extern crate log_settings;
// From crates.io.
extern crate byteorder;
2016-03-14 22:48:00 -05:00
mod error;
mod interpreter;
2016-03-05 00:48:23 -06:00
mod memory;
mod primval;
pub use error::{
EvalError,
EvalResult,
};
pub use interpreter::{
CachedMir,
EvalContext,
Frame,
eval_main,
step,
};
pub use memory::Memory;