rust/src/lib.rs

66 lines
904 B
Rust
Raw Normal View History

2016-04-07 06:56:07 -05:00
#![feature(
btree_range,
cell_extras,
2016-04-07 06:56:07 -05:00
collections,
collections_bound,
2016-06-01 10:05:20 -05:00
pub_restricted,
rustc_private,
2016-04-07 06:56:07 -05:00
)]
// 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;
2016-06-11 13:38:28 -05:00
extern crate rustc_data_structures;
extern crate rustc_mir;
extern crate syntax;
// From crates.io.
extern crate byteorder;
mod cast;
2016-03-14 22:48:00 -05:00
mod error;
mod eval_context;
mod lvalue;
2016-03-05 00:48:23 -06:00
mod memory;
2016-12-10 18:23:07 -06:00
mod operator;
mod step;
mod terminator;
mod value;
mod vtable;
pub use error::{
EvalError,
EvalResult,
};
pub use eval_context::{
EvalContext,
Frame,
2016-11-26 19:54:19 -06:00
ResourceLimits,
StackPopCleanup,
eval_main,
run_mir_passes,
};
pub use lvalue::{
Lvalue,
LvalueExtra,
};
pub use memory::{
2016-12-10 18:23:07 -06:00
AllocId,
Memory,
Pointer,
};
2016-12-10 18:23:07 -06:00
pub use value::{
PrimVal,
PrimValKind,
2016-12-21 19:15:03 -06:00
Value,
};