rust/src/lib.rs

46 lines
695 B
Rust
Raw Normal View History

2016-04-07 11:56:07 +00:00
#![feature(
btree_range,
collections,
collections_bound,
rustc_private,
2016-06-01 15:05:20 +00:00
pub_restricted,
2016-04-07 11:56:07 +00:00
)]
// From rustc.
2016-04-07 01:00:34 +00:00
#[macro_use] extern crate rustc;
extern crate rustc_borrowck;
2016-06-11 18:38:28 +00:00
extern crate rustc_data_structures;
extern crate rustc_mir;
2016-06-17 11:09:20 +00: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-15 03:48:00 +00:00
mod error;
mod interpreter;
2016-03-05 06:48:23 +00:00
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,
};