Skip to main content

revm_bytecode/
lib.rs

1//! Crate that contains bytecode types and opcode constants.
2//!
3//! Legacy bytecode will always contain a jump table.
4//!
5//! While EIP-7702 bytecode must contains a Address.
6#![cfg_attr(not(test), warn(unused_crate_dependencies))]
7#![cfg_attr(not(feature = "std"), no_std)]
8
9#[cfg(not(feature = "std"))]
10extern crate alloc as std;
11
12pub mod bytecode;
13mod decode_errors;
14/// EIP-7702 bytecode.
15pub mod eip7702;
16/// Iterator for the bytecode.
17mod iter;
18mod legacy;
19pub mod opcode;
20pub mod utils;
21
22/// Re-export of bitvec crate, used to store legacy bytecode jump table.
23pub use bitvec;
24pub use bytecode::{Bytecode, BytecodeKind};
25pub use decode_errors::BytecodeDecodeError;
26pub use iter::BytecodeIterator;
27pub use legacy::JumpTable;
28pub use opcode::OpCode;