Files
rust/src/lib.rs

55 lines
810 B
Rust
Raw Normal View History

2016-04-07 05:56:07 -06:00
#![feature(
btree_range,
collections,
collections_bound,
rustc_private,
2016-06-01 17:05:20 +02:00
pub_restricted,
cell_extras,
2016-04-07 05:56:07 -06:00
)]
// From rustc.
2016-04-06 19:00:34 -06:00
#[macro_use] extern crate rustc;
extern crate rustc_borrowck;
2016-06-11 12:38:28 -06:00
extern crate rustc_data_structures;
extern crate rustc_mir;
2016-06-17 13:09:20 +02: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 21:48:00 -06: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::{
EvalContext,
Frame,
Lvalue,
LvalueExtra,
2016-11-26 17:54:19 -08:00
ResourceLimits,
StackPopCleanup,
Value,
eval_main,
run_mir_passes,
};
pub use memory::{
Memory,
Pointer,
AllocId,
};
pub use primval::{
PrimVal,
PrimValKind,
};