rust/src/lib.rs
2017-01-30 09:44:52 +01:00

67 lines
928 B
Rust

#![feature(
btree_range,
collections,
field_init_shorthand,
i128_type,
pub_restricted,
rustc_private,
collections_bound,
)]
// From rustc.
#[macro_use]
extern crate log;
extern crate log_settings;
#[macro_use]
extern crate rustc;
extern crate rustc_borrowck;
extern crate rustc_const_math;
extern crate rustc_data_structures;
extern crate rustc_mir;
extern crate syntax;
// From crates.io.
extern crate byteorder;
mod cast;
mod error;
mod eval_context;
mod lvalue;
mod memory;
mod operator;
mod step;
mod terminator;
mod value;
mod vtable;
pub use error::{
EvalError,
EvalResult,
};
pub use eval_context::{
EvalContext,
Frame,
ResourceLimits,
StackPopCleanup,
eval_main,
run_mir_passes,
};
pub use lvalue::{
Lvalue,
LvalueExtra,
};
pub use memory::{
AllocId,
Memory,
Pointer,
};
pub use value::{
PrimVal,
PrimValKind,
Value,
};