eva-asm

Crates.ioeva-asm
lib.rseva-asm
version0.3.0
created_at2025-07-11 15:21:04.339552+00
updated_at2025-07-11 16:13:52.868158+00
descriptionEVM assembly instructions, opcodes and mnemonics
homepage
repositoryhttps://github.com/evanalyzer/eva
max_upload_size
id1748056
size63,548
(stqcky)

documentation

README

eva-asm

Crates.io Docs.rs License: MIT

Expressive, correct and beautiful representations of EVM instructions, opcodes and mnemonics.

Examples

  • Mnemonics
use eva_asm::opcode::Mnemonic;

let gas = Mnemonic::GAS;
assert_eq!(gas, 0x5A);
  • Operation codes
use eva_asm::opcode::{Mnemonic, Gas};
let gas = OpCode::Known(Mnemonic::GAS);
assert_eq!(gas, 0x5A);

let unknown = OpCode::Unknown(0xF);
assert!(unknown.is_unknown());
  • Instructions
use eva_asm::instructions::Push;

let push: Push<4> = Push::new([0xA]; 4);
assert!(push.is_push());
Commit count: 0

cargo fmt