forked from bluealloy/revm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.rs
32 lines (26 loc) · 853 Bytes
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#![warn(missing_debug_implementations, unreachable_pub)]
#![deny(unused_must_use, rust_2018_idioms)]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
extern crate alloc;
#[macro_use]
mod macros;
pub mod gas;
mod host;
pub mod inner_models;
pub mod instruction_result;
pub mod instructions;
mod interpreter;
pub(crate) const USE_GAS: bool = !cfg!(feature = "no_gas_measuring");
// Reexport primary types.
pub use gas::Gas;
pub use host::{DummyHost, Host};
pub use inner_models::*;
pub use instruction_result::InstructionResult;
pub use instructions::{opcode, Instruction, OpCode, OPCODE_JUMPMAP};
pub use interpreter::{
analysis, BytecodeLocked, Contract, Interpreter, Memory, Stack, CALL_STACK_LIMIT,
MAX_CODE_SIZE, MAX_INITCODE_SIZE,
};
#[doc(inline)]
pub use revm_primitives as primitives;